Permalink
Browse files

Merge pull request #12778 from etehtsea/rake-default-fix

Don't load test env by default.

Closes #13241
  • Loading branch information...
2 parents a8bd7b1 + a3dbb96 commit ec0a2b57f67c9153cb5f7bbe2a3f66d13fe64bdd @rafaelfranca rafaelfranca committed Mar 28, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/test_unit/railtie.rb
@@ -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

0 comments on commit ec0a2b5

Please sign in to comment.