mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
commit
643e0b23d6
2 changed files with 3 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
|||
* Fixes bug with testing nil Rake::Application (bug #10628).
|
||||
|
||||
* Fixes bug with scaffold generator with `--assets=false --resource-route=false`.
|
||||
Fixes #9525.
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
if defined?(Rake) && Rake.application.top_level_tasks.grep(/^(default$|test(:|$))/).any?
|
||||
if defined?(Rake) && defined?(Rake.application) && Rake.application.top_level_tasks.grep(/^(default$|test(:|$))/).any?
|
||||
ENV['RAILS_ENV'] ||= 'test'
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue