1
0
Fork 0
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:
Rafael Mendonça França 2014-03-28 10:24:18 -05:00
commit ec0a2b57f6

View file

@ -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