Permalink
Browse files

Don't load test env by default

  • Loading branch information...
1 parent 331c59f commit a3dbb962fa81ba170aece567235a17e16770b8c8 @etehtsea etehtsea committed Nov 5, 2013
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 a3dbb96

Please sign in to comment.