diff options
author | Robin Dupret <robin.dupret@gmail.com> | 2015-02-27 14:25:43 +0100 |
---|---|---|
committer | Robin Dupret <robin.dupret@gmail.com> | 2015-03-02 14:05:07 +0100 |
commit | 586fe4471d3a71b7500f734d26b28427332b6e43 (patch) | |
tree | b00f3580fee93df4bb720890b42297d8d1aeef00 /actionview | |
parent | 022c8be2cfee97b76c38e5134aa223f62938d6bf (diff) | |
download | rails-586fe4471d3a71b7500f734d26b28427332b6e43.tar.gz rails-586fe4471d3a71b7500f734d26b28427332b6e43.tar.bz2 rails-586fe4471d3a71b7500f734d26b28427332b6e43.zip |
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.
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/test/activerecord/polymorphic_routes_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |