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
1 changed files with 1 additions and 1 deletions

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'
end