Browse files

default task should also be in the test env

  • Loading branch information...
1 parent 1c2ad03 commit 58476a7a936e05bef0a767dc14b404c8a230a15b @tenderlove tenderlove committed Mar 30, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/all.rb
View
2 railties/lib/rails/all.rb
@@ -1,6 +1,6 @@
require "rails"
-if defined?(Rake) && Rake.application.top_level_tasks.grep(/^test(?::|$)/).any?
+if defined?(Rake) && Rake.application.top_level_tasks.grep(/^(default|test(:|$))/).any?
ENV['RAILS_ENV'] ||= 'test'
end

0 comments on commit 58476a7

Please sign in to comment.