diff options
author | Azul <azul@riseup.net> | 2016-07-02 13:16:35 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2016-07-02 13:26:43 +0200 |
commit | e81c1a8cf274a13903be00c74c975c0cb2c20995 (patch) | |
tree | 5da2e0711420fde574d1091dcbdfcccaddf52256 /test/unit/request_handler_test.rb | |
parent | fb2d7e6f8f1fceefbc8964d34369a867eb8f25bb (diff) |
refactor: turn EmailAddress into a class, cleanup
Diffstat (limited to 'test/unit/request_handler_test.rb')
-rw-r--r-- | test/unit/request_handler_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/request_handler_test.rb b/test/unit/request_handler_test.rb index 7fe766e..ef656f9 100644 --- a/test/unit/request_handler_test.rb +++ b/test/unit/request_handler_test.rb @@ -13,6 +13,11 @@ class Nickserver::RequestHandlerTest < Minitest::Test assert_response status: 500, content: "500 Not a valid address\n" end + def test_missing_domain + handle address: ['valid@email.tld'] + assert_response status: 500, content: "500 HTTP request must include a Host header.\n" + end + protected def handle(params = {}, headers = {}) |