1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

add tests for the polymorphic_path method

This commit is contained in:
Aaron Patterson 2014-05-08 13:42:00 -07:00
parent 45bdbe0041
commit 5dd6e1b142

View file

@ -75,6 +75,9 @@ class PolymorphicRoutesTest < ActionController::TestCase
end
def assert_url(url, args)
host = self.class.default_url_options[:host]
assert_equal url.sub(/http:\/\/#{host}/, ''), polymorphic_path(args)
assert_equal url, polymorphic_url(args)
assert_equal url, url_for(args)
end