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,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'
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue