summaryrefslogtreecommitdiff
path: root/test/support
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2016-09-30 12:47:32 +0200
committerAzul <azul@riseup.net>2016-09-30 12:47:32 +0200
commitab31d9ca7dca20c873a7240482d1736d0f6b6dae (patch)
tree87ee0becc73d6a92b94d3b35e0c59ad0906a7865 /test/support
parentc3499f703245b6493ddc94d27542a4b49a9bfc81 (diff)
change default adapter to CelluloidHttp
Turns out without this nickserver will not respond to multiple concurrent requests.
Diffstat (limited to 'test/support')
-rw-r--r--test/support/http_stub_helper.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/support/http_stub_helper.rb b/test/support/http_stub_helper.rb
index 808fd01..dd3d1b2 100644
--- a/test/support/http_stub_helper.rb
+++ b/test/support/http_stub_helper.rb
@@ -1,7 +1,9 @@
+require 'nickserver/source'
+
module HttpStubHelper
def stubbing_http
- Nickserver::Adapters::Http.stub :new, adapter do
+ Nickserver::Source::DEFAULT_ADAPTER_CLASS.stub :new, adapter do
yield
end
adapter.verify