aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorRafael Mendonça França <rafael.franca@plataformatec.com.br>2014-09-01 22:20:39 -0300
committerRafael Mendonça França <rafael.franca@plataformatec.com.br>2014-09-01 22:20:39 -0300
commit5c057f925516e87b2bcd6701fab42c1454652cc3 (patch)
tree2ab0eb6f65a5bddb02599fac84eb0fea89e569f6 /actionview
parent2fc6d41670e3e062fc821cb6eeb8010b97266ab9 (diff)
downloadrails-5c057f925516e87b2bcd6701fab42c1454652cc3.tar.gz
rails-5c057f925516e87b2bcd6701fab42c1454652cc3.tar.bz2
rails-5c057f925516e87b2bcd6701fab42c1454652cc3.zip
Remove warning
Diffstat (limited to 'actionview')
-rw-r--r--actionview/test/activerecord/polymorphic_routes_test.rb4
1 files changed, 2 insertions, 2 deletions
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