Skip to content

Commit

Permalink
Merge pull request rails#12778 from etehtsea/rake-default-fix
Browse files Browse the repository at this point in the history
Don't load test env by default.

Closes rails#13241
  • Loading branch information
rafaelfranca committed Mar 28, 2014
2 parents a8bd7b1 + a3dbb96 commit ec0a2b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/lib/rails/test_unit/railtie.rb
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit ec0a2b5

Please sign in to comment.