summaryrefslogtreecommitdiff
path: root/test/unit
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2016-08-30 12:10:57 +0200
committerAzul <azul@riseup.net>2016-08-30 12:36:40 +0200
commitb22e23eb9f5a1cb3e37ab2a26b1091183574f4e4 (patch)
treeb3ca7f91dd78994c5d0164645922b3929b9177a3 /test/unit
parent494e6f32daf0f6bf37321507b83848b4be087100 (diff)
refactor: make the RequestHandler classes callable
Whenever a RequestHandler class is called we instantiate it with the request. Then we call handle on the instance. This way we can access the request and its content via accessors rather than only in the handle method.
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/request_handlers/local_email_handler_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/request_handlers/local_email_handler_test.rb b/test/unit/request_handlers/local_email_handler_test.rb
index 1bfe264..1645451 100644
--- a/test/unit/request_handlers/local_email_handler_test.rb
+++ b/test/unit/request_handlers/local_email_handler_test.rb
@@ -26,7 +26,7 @@ class LocalEmailHandlerTest < MiniTest::Test
protected
def handler
- Nickserver::RequestHandlers::LocalEmailHandler.new
+ Nickserver::RequestHandlers::LocalEmailHandler
end
def source_class