aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-01-06 10:42:26 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2012-01-06 11:11:34 -0800
commit180eb8ff31d679e6b0ddd55c610139c38ec52f18 (patch)
treeadebcba6825ba5462c45e1e535f8ddee7b949fb3
parent48ed7e6ac47801a93f43dda5c7afc32ed6053b72 (diff)
downloadrails-180eb8ff31d679e6b0ddd55c610139c38ec52f18.tar.gz
rails-180eb8ff31d679e6b0ddd55c610139c38ec52f18.tar.bz2
rails-180eb8ff31d679e6b0ddd55c610139c38ec52f18.zip
no need for assert_block
-rw-r--r--actionpack/lib/action_dispatch/testing/assertions/response.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_dispatch/testing/assertions/response.rb b/actionpack/lib/action_dispatch/testing/assertions/response.rb
index fbee226a36..b3d34faf9c 100644
--- a/actionpack/lib/action_dispatch/testing/assertions/response.rb
+++ b/actionpack/lib/action_dispatch/testing/assertions/response.rb
@@ -29,11 +29,11 @@ module ActionDispatch
validate_request!
if type.in?([:success, :missing, :redirect, :error]) && @response.send("#{type}?")
- assert_block("") { true } # to count the assertion
+ assert true # to count the assertion
elsif type.is_a?(Fixnum) && @response.response_code == type
- assert_block("") { true } # to count the assertion
+ assert true # to count the assertion
elsif type.is_a?(Symbol) && @response.response_code == Rack::Utils::SYMBOL_TO_STATUS_CODE[type]
- assert_block("") { true } # to count the assertion
+ assert true # to count the assertion
else
flunk "Expected response to be a <#{type}>, but was <#{@response.response_code}>"
end