From 5c057f925516e87b2bcd6701fab42c1454652cc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Mon, 1 Sep 2014 22:20:39 -0300 Subject: Remove warning --- actionview/test/activerecord/polymorphic_routes_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionview') diff --git a/actionview/test/activerecord/polymorphic_routes_test.rb b/actionview/test/activerecord/polymorphic_routes_test.rb index a259c359f0..4e94304796 100644 --- a/actionview/test/activerecord/polymorphic_routes_test.rb +++ b/actionview/test/activerecord/polymorphic_routes_test.rb @@ -199,14 +199,14 @@ class PolymorphicRoutesTest < ActionController::TestCase assert_equal "http://example.com/posts/#{@blog_post.id}", polymorphic_url([nil, @blog_post]) end end - + def test_with_nil_in_list_does_not_generate_invalid_link with_top_level_and_nested_routes do exception = assert_raise NoMethodError do @series.save polymorphic_url([nil, @series]) end - assert_match /undefined method `series_url' for/, exception.message + assert_match(/undefined method `series_url' for/, exception.message) end end -- cgit v1.2.3