aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/actionpack/controller/render_test.rb
diff options
context:
space:
mode:
authorFranky W <frankywahl@users.noreply.github.com>2014-11-07 18:27:18 -0800
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-02-20 21:23:36 -0200
commitb1d263505770f6dafe6c77fa33cf595f192441ba (patch)
treec3e8001025bfae01afa9787c45e443cf59473b54 /actionview/test/actionpack/controller/render_test.rb
parent787bbb8fbab0fe2ef2822d403078b72106365627 (diff)
downloadrails-b1d263505770f6dafe6c77fa33cf595f192441ba.tar.gz
rails-b1d263505770f6dafe6c77fa33cf595f192441ba.tar.bz2
rails-b1d263505770f6dafe6c77fa33cf595f192441ba.zip
Error message testing fix
The testing of error messages have been implemented wrongly a few times. This is an attempt to fix it. For example, some of these test should have failed with the new code. The reason they are not failling with the new string is the fact they were not being tested beforehand.
Diffstat (limited to 'actionview/test/actionpack/controller/render_test.rb')
-rw-r--r--actionview/test/actionpack/controller/render_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/test/actionpack/controller/render_test.rb b/actionview/test/actionpack/controller/render_test.rb
index fe4cf3688a..fb826af044 100644
--- a/actionview/test/actionpack/controller/render_test.rb
+++ b/actionview/test/actionpack/controller/render_test.rb
@@ -861,12 +861,12 @@ class RenderTest < ActionController::TestCase
# :ported:
def test_attempt_to_access_object_method
- assert_raise(AbstractController::ActionNotFound, "No action responded to [clone]") { get :clone }
+ assert_raise(AbstractController::ActionNotFound) { get :clone }
end
# :ported:
def test_private_methods
- assert_raise(AbstractController::ActionNotFound, "No action responded to [determine_layout]") { get :determine_layout }
+ assert_raise(AbstractController::ActionNotFound) { get :determine_layout }
end
# :ported: