diff options
author | Azul <azul@riseup.net> | 2016-09-12 11:42:02 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2016-09-12 11:42:02 +0200 |
commit | ce09dd9c21d79e2260f9436e41f9970b42935b27 (patch) | |
tree | f620f8bf3d7386d8a5a48b1feb0a18c58269c128 /test/unit/response_test.rb | |
parent | f18d698d09afda894a568de79c5770704a0c9de7 (diff) |
[wip] nicknym source query implemented
Also changed Nickserver::Response to not include the status code.
This may be okay for error responses but in most cases we want to
have a parsable message and not some status code prepended to it.
Diffstat (limited to 'test/unit/response_test.rb')
-rw-r--r-- | test/unit/response_test.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/unit/response_test.rb b/test/unit/response_test.rb index 8a53066..ac7a3a8 100644 --- a/test/unit/response_test.rb +++ b/test/unit/response_test.rb @@ -3,9 +3,10 @@ require 'nickserver/response' class ResponseTest < Minitest::Test - def test_content - response = Nickserver::Response.new 500, "Not a valid address" - assert_equal "500 Not a valid address", response.content + def test_ok_response + response = Nickserver::Response.new 200, "content" + assert_equal "content", response.content + assert_equal 200, response.status end end |