aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template
diff options
context:
space:
mode:
authorAman Gupta <aman@tmm1.net>2015-01-02 20:04:31 -0800
committerAman Gupta <aman@tmm1.net>2015-01-02 20:04:31 -0800
commit8945a12d17a5090010702a235103333d3abe69c9 (patch)
tree5fc063243b7a1aea00aa5f291b3f23dbb39a34c5 /actionpack/test/template
parente4a2396942d1479b254cee95a31a00a2853770bb (diff)
downloadrails-8945a12d17a5090010702a235103333d3abe69c9.tar.gz
rails-8945a12d17a5090010702a235103333d3abe69c9.tar.bz2
rails-8945a12d17a5090010702a235103333d3abe69c9.zip
convert another incompatible assert_raise invocation
Diffstat (limited to 'actionpack/test/template')
-rw-r--r--actionpack/test/template/test_case_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/test/template/test_case_test.rb b/actionpack/test/template/test_case_test.rb
index 13a2b7fb6f..687169117d 100644
--- a/actionpack/test/template/test_case_test.rb
+++ b/actionpack/test/template/test_case_test.rb
@@ -311,9 +311,10 @@ module ActionView
test "supports specifying locals (failing)" do
controller.controller_path = "test"
render(:template => "test/calling_partial_with_layout")
- assert_raise ActiveSupport::TestCase::Assertion, /Somebody else.*David/m do
+ exception = assert_raise ActiveSupport::TestCase::Assertion do
assert_template :partial => "_partial_for_use_in_layout", :locals => { :name => "Somebody Else" }
end
+ assert_match /Somebody else.*David/m, exception.message
end
end