aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-03-29 19:19:54 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-04-03 12:16:19 -0400
commit58476a7a936e05bef0a767dc14b404c8a230a15b (patch)
treefc94f285131960209860799dfa68bdb09aacc0f3 /railties/lib
parent1c2ad03f194e1bbc062a1fe684a5d3804d09a32f (diff)
downloadrails-58476a7a936e05bef0a767dc14b404c8a230a15b.tar.gz
rails-58476a7a936e05bef0a767dc14b404c8a230a15b.tar.bz2
rails-58476a7a936e05bef0a767dc14b404c8a230a15b.zip
default task should also be in the test env
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/all.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/all.rb b/railties/lib/rails/all.rb
index 19c2226619..3553979808 100644
--- a/railties/lib/rails/all.rb
+++ b/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