diff options
Diffstat (limited to 'test/support/http_adapter_helper.rb')
-rw-r--r-- | test/support/http_adapter_helper.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/support/http_adapter_helper.rb b/test/support/http_adapter_helper.rb new file mode 100644 index 0000000..6817e1e --- /dev/null +++ b/test/support/http_adapter_helper.rb @@ -0,0 +1,19 @@ +require 'nickserver/adapters/celluloid_http' + +module HttpAdapterHelper + + def setup + super + @adapter = Nickserver::Adapters::CelluloidHttp.new + end + + def teardown + @adapter.terminate + super + end + + protected + + attr_reader :adapter + +end |