mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #12778 from etehtsea/rake-default-fix
Don't load test env by default. Closes #13241
This commit is contained in:
commit
ec0a2b57f6
1 changed files with 1 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
if defined?(Rake.application) && Rake.application.top_level_tasks.grep(/^(default$|test(:|$))/).any?
|
if defined?(Rake.application) && Rake.application.top_level_tasks.grep(/^test(?::|$)/).any?
|
||||||
ENV['RAILS_ENV'] ||= 'test'
|
ENV['RAILS_ENV'] ||= 'test'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue