diff options
author | bogdanvlviv <bogdanvlviv@gmail.com> | 2017-02-20 00:07:58 +0200 |
---|---|---|
committer | bogdanvlviv <bogdanvlviv@gmail.com> | 2017-02-20 01:27:32 +0200 |
commit | f1a097733a6923d4c7b6b4413394ce86e17198d6 (patch) | |
tree | 8f16051edaad48b0ed8723567c7b5a1febeab2f1 /activesupport/test/option_merger_test.rb | |
parent | 4f2aa162ed3dc419fa1a7880ecd77d47ba28a8d3 (diff) | |
download | rails-f1a097733a6923d4c7b6b4413394ce86e17198d6.tar.gz rails-f1a097733a6923d4c7b6b4413394ce86e17198d6.tar.bz2 rails-f1a097733a6923d4c7b6b4413394ce86e17198d6.zip |
Add assertion to polymorphic_routes_test.rb
The assertion will ensure that the behavior doesn't regress.
assert_equal "/projects", polymorphic_path("projects")
Remove FIXME related to polymorphic_url behavior.
polymorphic_url with Symbol or String works equally.
Example:
default_url_options[:host] = "example.com"
polymorphic_url(:projects) # => "http://example.com/projects"
polymorphic_url("projects") # => "http://example.com/projects"
Related to 37d4415a7b433fcb987b1c6a5b51bf2d8efc5d5e
Diffstat (limited to 'activesupport/test/option_merger_test.rb')
0 files changed, 0 insertions, 0 deletions