diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/dispatcher_test.rb (renamed from test/unit/request_handler_test.rb) | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/unit/request_handler_test.rb b/test/unit/dispatcher_test.rb index d938706..60d252b 100644 --- a/test/unit/request_handler_test.rb +++ b/test/unit/dispatcher_test.rb @@ -1,7 +1,7 @@ require 'test_helper' -require 'nickserver/request_handler' +require 'nickserver/dispatcher' -class Nickserver::RequestHandlerTest < Minitest::Test +class Nickserver::DispatcherTest < Minitest::Test def test_empty_query handle @@ -58,12 +58,12 @@ class Nickserver::RequestHandlerTest < Minitest::Test def assert_response(args) responder.expect :respond, nil, [args[:status], args[:content]] - handler.respond_to @params, @headers + dispatcher.respond_to @params, @headers responder.verify end - def handler - Nickserver::RequestHandler.new responder + def dispatcher + Nickserver::Dispatcher.new responder end def responder |