Permalink
Browse files

only match the default task

  • Loading branch information...
1 parent 125cbc3 commit 999835a8e5a34afb41af54f3cb14562a6c759a04 @tenderlove tenderlove committed Apr 3, 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(/^(default|test(:|$))/).any?
+if defined?(Rake) && Rake.application.top_level_tasks.grep(/^(default$|test(:|$))/).any?
ENV['RAILS_ENV'] ||= 'test'
end

0 comments on commit 999835a

Please sign in to comment.