diff options
Diffstat (limited to 'test/unit/error_response_test.rb')
-rw-r--r-- | test/unit/error_response_test.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/unit/error_response_test.rb b/test/unit/error_response_test.rb new file mode 100644 index 0000000..7242b38 --- /dev/null +++ b/test/unit/error_response_test.rb @@ -0,0 +1,12 @@ +require 'test_helper' +require 'nickserver/error_response' + +class ErrorResponseTest < Minitest::Test + + def test_content + response = Nickserver::ErrorResponse.new "Not a valid address" + assert_equal "500 Not a valid address\n", response.content + assert_equal 500, response.status + end + +end |