From 999835a8e5a34afb41af54f3cb14562a6c759a04 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 3 Apr 2013 12:51:48 -0400 Subject: only match the default task --- railties/lib/rails/all.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties') diff --git a/railties/lib/rails/all.rb b/railties/lib/rails/all.rb index 3553979808..1493815c30 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(/^(default|test(:|$))/).any? +if defined?(Rake) && Rake.application.top_level_tasks.grep(/^(default$|test(:|$))/).any? ENV['RAILS_ENV'] ||= 'test' end -- cgit v1.2.3