From 1f69b76ef30d9e064537e4e82b9d4f51be558afe Mon Sep 17 00:00:00 2001 From: Azul Date: Thu, 11 May 2017 09:55:03 +0200 Subject: respond with 400 on invalid input --- test/integration/dispatcher_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/integration') diff --git a/test/integration/dispatcher_test.rb b/test/integration/dispatcher_test.rb index b551e87..b2582bd 100644 --- a/test/integration/dispatcher_test.rb +++ b/test/integration/dispatcher_test.rb @@ -123,7 +123,7 @@ class Nickserver::DispatcherTest < Minitest::Test end def error(msg) - response status: 500, content: "500 #{msg}\n" + response status: 400, content: JSON.generate(error: msg) end def http_connection_error -- cgit v1.2.3