diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-12-22 16:08:03 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-12-22 16:08:03 -0600 |
commit | a1bf2f96ce6f086de8519e344ee7e396ae3da9bb (patch) | |
tree | 3c3a300bb56ec47dca0bc2b2d0379b33e295524e /actionpack/lib/action_dispatch/testing/assertions | |
parent | 17b6053083767e5747c0f522b83a69e268d9d69e (diff) | |
download | rails-a1bf2f96ce6f086de8519e344ee7e396ae3da9bb.tar.gz rails-a1bf2f96ce6f086de8519e344ee7e396ae3da9bb.tar.bz2 rails-a1bf2f96ce6f086de8519e344ee7e396ae3da9bb.zip |
AD::StatusCodes support is now part of rack
Diffstat (limited to 'actionpack/lib/action_dispatch/testing/assertions')
-rw-r--r-- | actionpack/lib/action_dispatch/testing/assertions/response.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/testing/assertions/response.rb b/actionpack/lib/action_dispatch/testing/assertions/response.rb index 501a7c4dfb..5686bbdbde 100644 --- a/actionpack/lib/action_dispatch/testing/assertions/response.rb +++ b/actionpack/lib/action_dispatch/testing/assertions/response.rb @@ -28,7 +28,7 @@ module ActionDispatch assert_block("") { true } # to count the assertion elsif type.is_a?(Fixnum) && @response.response_code == type assert_block("") { true } # to count the assertion - elsif type.is_a?(Symbol) && @response.response_code == ActionDispatch::StatusCodes::SYMBOL_TO_STATUS_CODE[type] + elsif type.is_a?(Symbol) && @response.response_code == Rack::Utils::SYMBOL_TO_STATUS_CODE[type] assert_block("") { true } # to count the assertion else assert_block(build_message(message, "Expected response to be a <?>, but was <?>", type, @response.response_code)) { false } |