rails/actionpack/test/journey
Andrew White f1d8f2af72 Change the behavior of route defaults
This commit changes route defaults so that explicit defaults are no
longer required where the key is not part of the path. For example:

  resources :posts, bucket_type: 'posts'

will be required whenever constructing the url from a hash such as a
functional test or using url_for directly. However using the explicit
form alters the behavior so it's not required:

  resources :projects, defaults: { bucket_type: 'projects' }

This changes existing behavior slightly in that any routes which
only differ in their defaults will match the first route rather
than the closest match.

Closes #8814
2013-01-15 17:22:25 +00:00
..
gtg Use ActiveSupport::TestCase in the journey tests 2012-12-31 14:40:43 -03:00
nfa Use ActiveSupport::TestCase in the journey tests 2012-12-31 14:40:43 -03:00
nodes Use ActiveSupport::TestCase in the journey tests 2012-12-31 14:40:43 -03:00
path Use ActiveSupport::TestCase in the journey tests 2012-12-31 14:40:43 -03:00
route/definition Use ActiveSupport::TestCase in the journey tests 2012-12-31 14:40:43 -03:00
router Use ActiveSupport::TestCase in the journey tests 2012-12-31 14:40:43 -03:00
route_test.rb Change the behavior of route defaults 2013-01-15 17:22:25 +00:00
router_test.rb Raise correct exception now Journey is integrated. 2013-01-15 17:21:33 +00:00
routes_test.rb Use ActiveSupport::TestCase in the journey tests 2012-12-31 14:40:43 -03:00