aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2011-05-02 17:04:21 -0500
committerDavid Heinemeier Hansson <david@loudthinking.com>2011-05-02 17:04:21 -0500
commitb29a905f949dbed5052c55184bd5e0838517ec8d (patch)
treed6cc48da3b2f1ed0f38b74677330b5f9141942c9 /actionpack
parent31155eeb3ce00e5f830171d34b2037fb7a1104f0 (diff)
downloadrails-b29a905f949dbed5052c55184bd5e0838517ec8d.tar.gz
rails-b29a905f949dbed5052c55184bd5e0838517ec8d.tar.bz2
rails-b29a905f949dbed5052c55184bd5e0838517ec8d.zip
Flunk makes a lot more sense, doesnt it (hat tip @tenderlove)
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/testing/assertions/response.rb2
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 e209978fb7..3335742d47 100644
--- a/actionpack/lib/action_dispatch/testing/assertions/response.rb
+++ b/actionpack/lib/action_dispatch/testing/assertions/response.rb
@@ -42,7 +42,7 @@ module ActionDispatch
elsif type.is_a?(Symbol) && @response.response_code == Rack::Utils::SYMBOL_TO_STATUS_CODE[type]
assert_block("") { true } # to count the assertion
else
- assert(false, build_message(message, "Expected response to be a <?>, but was <?>", type, @response.response_code))
+ flunk(build_message(message, "Expected response to be a <?>, but was <?>", type, @response.response_code))
end
end