1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionview/test/activerecord
bogdanvlviv f1a097733a 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 37d4415a7b
2017-02-20 01:27:32 +02:00
..
controller_runtime_test.rb modernizes hash syntax in actionview 2016-08-06 19:36:34 +02:00
debug_helper_test.rb Add three new rubocop rules 2016-08-16 04:30:11 -03:00
form_helper_activerecord_test.rb Reduce string objects by using \ instead of + or << for concatenating strings 2017-01-12 17:45:37 +09:00
polymorphic_routes_test.rb Add assertion to polymorphic_routes_test.rb 2017-02-20 01:27:32 +02:00
relation_cache_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
render_partial_with_record_identification_test.rb class Foo < Struct.new(:x) creates an extra unneeded anonymous class 2017-01-13 15:13:47 +09:00