diff options
Diffstat (limited to 'test/spec_response.rb')
-rw-r--r-- | test/spec_response.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/spec_response.rb b/test/spec_response.rb index 5e6d5a5b..54f41753 100644 --- a/test/spec_response.rb +++ b/test/spec_response.rb @@ -503,6 +503,16 @@ describe Rack::Response do res.must_be :client_error? res.must_be :method_not_allowed? + res.status = 406 + res.wont_be :successful? + res.must_be :client_error? + res.must_be :not_acceptable? + + res.status = 408 + res.wont_be :successful? + res.must_be :client_error? + res.must_be :request_timeout? + res.status = 412 res.wont_be :successful? res.must_be :client_error? |