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:
parent
125cbc3fdf
commit
999835a8e5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue