diff options
author | deepj <deepjungle.maca@gmail.com> | 2015-08-29 14:55:36 +0200 |
---|---|---|
committer | deepj <deepjungle.maca@gmail.com> | 2015-08-29 14:55:36 +0200 |
commit | 9c9d168b2683bd961f5bb8264df9c28b54266dc5 (patch) | |
tree | 70f4d3f32ebac39837428b26ca1d168e85079ae5 | |
parent | 3f6aee5544582abff3911e61dbe3c01506c63fbd (diff) | |
download | rack-9c9d168b2683bd961f5bb8264df9c28b54266dc5.tar.gz |
Remove any reference to 418 status code
It was removed in Rack 1.6 from HTTP status codes. See https://github.com/rack/rack/pull/754
-rw-r--r-- | lib/rack/response.rb | 1 | ||||
-rw-r--r-- | test/spec_response.rb | 5 |
2 files changed, 0 insertions, 6 deletions
diff --git a/lib/rack/response.rb b/lib/rack/response.rb index a1fa7a45..bbd2e703 100644 --- a/lib/rack/response.rb +++ b/lib/rack/response.rb @@ -127,7 +127,6 @@ module Rack def not_found?; status == 404; end def method_not_allowed?; status == 405; end def precondition_failed?; status == 412; end - def i_m_a_teapot?; status == 418; end def unprocessable?; status == 422; end def redirect?; [301, 302, 303, 307].include? status; end diff --git a/test/spec_response.rb b/test/spec_response.rb index 023ba91b..27736fd6 100644 --- a/test/spec_response.rb +++ b/test/spec_response.rb @@ -266,11 +266,6 @@ describe Rack::Response do res.must_be :client_error? res.must_be :precondition_failed? - res.status = 418 - res.wont_be :successful? - res.must_be :client_error? - res.must_be :i_m_a_teapot? - res.status = 422 res.wont_be :successful? res.must_be :client_error? |