diff options
-rw-r--r-- | lib/nickserver/source.rb | 6 | ||||
-rw-r--r-- | test/support/http_stub_helper.rb | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/lib/nickserver/source.rb b/lib/nickserver/source.rb index ca2c34c..dc0669a 100644 --- a/lib/nickserver/source.rb +++ b/lib/nickserver/source.rb @@ -1,9 +1,11 @@ -require 'nickserver/adapters/http' +require 'nickserver/adapters/celluloid_http' module Nickserver class Source - def initialize(adapter = Nickserver::Adapters::Http.new) + DEFAULT_ADAPTER_CLASS = Nickserver::Adapters::CelluloidHttp + + def initialize(adapter = DEFAULT_ADAPTER_CLASS.new) @adapter = adapter end 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 |