aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/testing/assertions/response.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2011-04-23 01:16:21 +0200
committerXavier Noria <fxn@hashref.com>2011-04-23 01:16:21 +0200
commit384dbfd1408721ded071a587b0dc9ee40203607e (patch)
tree770854b984691dea8187ca0a998a28e93a008093 /actionpack/lib/action_dispatch/testing/assertions/response.rb
parent900470cf3cd346ad1b17cf6902f3f98e6dae7709 (diff)
parentaf1b48926f49226c934995c322ee017239158cf3 (diff)
downloadrails-384dbfd1408721ded071a587b0dc9ee40203607e.tar.gz
rails-384dbfd1408721ded071a587b0dc9ee40203607e.tar.bz2
rails-384dbfd1408721ded071a587b0dc9ee40203607e.zip
Merge branch 'master' of git://github.com/rails/rails
Diffstat (limited to 'actionpack/lib/action_dispatch/testing/assertions/response.rb')
-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 8a04cfa886..e209978fb7 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_block(build_message(message, "Expected response to be a <?>, but was <?>", type, @response.response_code)) { false }
+ assert(false, build_message(message, "Expected response to be a <?>, but was <?>", type, @response.response_code))
end
end