summaryrefslogtreecommitdiff
path: root/test/unit
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2016-08-27 09:09:07 +0200
committerAzul <azul@riseup.net>2016-08-27 09:09:07 +0200
commit47343fad827ac2bef2ed7bc08768e4e58ac9a95f (patch)
tree2d4645905ef0aec6546cb0934d0ef73ea9a1808a /test/unit
parentdecdf85a8b2713fddf13888b48810d59b0ec2189 (diff)
refactor: push down adapter dependency injection to sources
The original idea was that we would have all the celluloid related things injected in reel_server. However it seems unlikely that we will use a different http system anytime soon. Removing some layers of dependency injection to reduce complexity. We can easily bring this back if we want.
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/request_handler_test.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/unit/request_handler_test.rb b/test/unit/request_handler_test.rb
index 6c7a036..d938706 100644
--- a/test/unit/request_handler_test.rb
+++ b/test/unit/request_handler_test.rb
@@ -63,14 +63,11 @@ class Nickserver::RequestHandlerTest < Minitest::Test
end
def handler
- Nickserver::RequestHandler.new responder, adapter
+ Nickserver::RequestHandler.new responder
end
def responder
@responder ||= Minitest::Mock.new
end
- def adapter
- @adapter ||= Minitest::Mock.new
- end
end