From 586fe4471d3a71b7500f734d26b28427332b6e43 Mon Sep 17 00:00:00 2001 From: Robin Dupret Date: Fri, 27 Feb 2015 14:25:43 +0100 Subject: Avoid accurate assertions on error messages Since there are disparities between the raised error messages on the different implementations, let's avoid being too accurate. --- actionview/test/activerecord/polymorphic_routes_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionview/test') diff --git a/actionview/test/activerecord/polymorphic_routes_test.rb b/actionview/test/activerecord/polymorphic_routes_test.rb index 6b51775cf3..34b2698c7f 100644 --- a/actionview/test/activerecord/polymorphic_routes_test.rb +++ b/actionview/test/activerecord/polymorphic_routes_test.rb @@ -208,7 +208,7 @@ class PolymorphicRoutesTest < ActionController::TestCase @series.save polymorphic_url([nil, @series]) end - assert_match(/undefined method `series_url' for/, exception.message) + assert_match(/undefined method `series_url'/, exception.message) end end -- cgit v1.2.3