rails/actionpack/test
T.J. Schuck ee65f48c26 Mounted Rack apps should have default named routes based on app name
This fixes a regression in 4.2.0 from 4.1.8.

https://github.com/rails/rails/pull/17823 fixed a similar regression regarding _explicitly_ named routes for a mounted Rack app, but there was another regression for the default value.

With a route like:

    Rails.application.routes.draw do
      mount Mountable::Web, at: 'some_route'
    end

The "Prefix" column of rake routes gives the following:

- 4.1.8:         mountable_web
- 4.2.0.beta1-4: [nothing]
- 4.2.0.rc1:     [nothing]
- 4.2.0.rc2:     some_route   <- regression

This fixes the default to go back to being based off the name of the class like the docs specify: 785d04e310/actionpack/lib/action_dispatch/routing/mapper.rb (L558-L560)

Explicitly named routes still work correctly per https://github.com/rails/rails/pull/17823:

    Rails.application.routes.draw do
      mount Mountable::Web, at: 'some_route', as: 'named'
    end

- 4.1.8:         named
- 4.2.0.beta1-4: [nothing]
- 4.2.0.rc1:     [nothing]
- 4.2.0.rc2:     named
2014-12-06 01:17:50 -05:00
..
abstract Partially revert deprecation of *_filter 2014-06-03 19:53:28 -03:00
assertions Change all MiniTest to Minitest since, MiniTest namespace has been renamed to Minitest 2013-12-18 14:39:50 +05:30
controller Typo: Hello = Guten Tag (in German) 2014-12-05 12:54:15 +07:00
dispatch Mounted Rack apps should have default named routes based on app name 2014-12-06 01:17:50 -05:00
fixtures Typo: Hello = Guten Tag (in German) 2014-12-05 12:54:15 +07:00
journey make OR in journey patterns compile to a valid regular expression 2014-11-29 01:26:10 +01:00
lib/controller Removing unused fake models 2014-09-07 22:51:14 -03:00
routing Deprecate *_path methods in mailers 2014-07-30 12:01:45 -05:00
tmp
abstract_unit.rb Merge pull request #17862 from lucasmazza/lm-hide-action 2014-12-02 11:40:11 -02:00