diff options
author | Azul <azul@riseup.net> | 2016-06-21 12:33:52 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2016-06-21 12:33:52 +0200 |
commit | cd67dfac8f764140c47e0fba9304eba168c7a25b (patch) | |
tree | fb955e0ff28f53e8f05758936694844a8565156b /test | |
parent | b185742d959a0a3854c5e628354a538a15bdea15 (diff) |
refactor: change send_response -> respond in em_server
This way the interface mimics the one of Celluloid Reels request.
request.respond status, content
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/request_handler_test.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/unit/request_handler_test.rb b/test/unit/request_handler_test.rb index c9d316f..7fe766e 100644 --- a/test/unit/request_handler_test.rb +++ b/test/unit/request_handler_test.rb @@ -21,8 +21,7 @@ class Nickserver::RequestHandlerTest < Minitest::Test end def assert_response(args) - args[:content_type] ||= 'text/plain' - responder.expect :send_response, nil, [args] + responder.expect :respond, nil, [args[:status], args[:content]] handler.respond_to @params, @headers responder.verify end |