rails/railties/test
Piotr Sarnacki 7c95be54b4 Fix generators to help with ambiguous ApplicationController issue
In development mode, dependencies are loaded dynamically at runtime,
using `const_missing`. Because of that, when one of the constants is
already loaded and `const_missing` is not triggered, user can end up
with unexpected results.

Given such file in an Engine:

```ruby
module Blog
  class PostsController < ApplicationController
  end
end
```

If you load it first, before loading any application files, it will
correctly load `Blog::ApplicationController`, because second line will
hit `const_missing`. However if you load `ApplicationController` first,
the constant will be loaded already, `const_missing` hook will not be
fired and in result `PostsController` will inherit from
`ApplicationController` instead of `Blog::ApplicationController`.

Since it can't be fixed in `AS::Dependencies`, the easiest fix is to
just explicitly load application controller.

closes #6413
2012-05-20 16:28:02 -07:00
..
application Merge pull request #3359 from mrreynolds/datamapper_naming_fix 2012-05-19 08:19:39 -07:00
commands Fix build 2012-05-06 21:38:34 -07:00
fixtures treat USAGE as an ERB template 2011-11-02 09:00:18 -04:00
generators Fix generators to help with ambiguous ApplicationController issue 2012-05-20 16:28:02 -07:00
isolation Remove useless load path modifications 2012-05-11 19:00:35 -03:00
queueing Allow overriding exception handling in threaded consumer 2012-05-04 09:11:44 -03:00
railties Merge pull request #3359 from mrreynolds/datamapper_naming_fix 2012-05-19 08:19:39 -07:00
abstract_unit.rb Ensure that Rails.env is equal to "test" by default when running tests. 2012-05-06 21:36:59 -07:00
backtrace_cleaner_test.rb Gem cont presence checking has been removed 2012-05-02 13:56:13 +03:00
engine_test.rb Don't create new directory for tests 2012-04-28 15:05:49 -07:00
generators_test.rb Remove --http. 2012-03-14 22:30:01 +01:00
initializable_test.rb :group => :assets should only run in the assets environment. 2011-10-02 22:08:33 +02:00
paths_test.rb Allow loading external route files from the router 2012-04-25 16:07:17 -05:00
rails_info_controller_test.rb Remove default match without specified method 2012-04-24 22:52:26 -05:00
rails_info_test.rb Updated/changed useless tr/gsubs 2012-04-03 15:16:09 +02:00
script_rails_loader_test.rb Deletes trailing whitespaces (over text files only find * -type f -exec sed 's/[ \t]*$//' -i {} \;) 2010-08-14 04:12:33 -03:00