1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

only match the default task

This commit is contained in:
Aaron Patterson 2013-04-03 12:51:48 -04:00
parent 125cbc3fdf
commit 999835a8e5

View file

@ -1,6 +1,6 @@
require "rails" 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' ENV['RAILS_ENV'] ||= 'test'
end end