From 58476a7a936e05bef0a767dc14b404c8a230a15b Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Fri, 29 Mar 2013 19:19:54 -0700 Subject: default task should also be in the test env --- railties/lib/rails/all.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/lib/rails') 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 -- cgit v1.2.3