mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
condition simplified
This commit is contained in:
parent
643e0b23d6
commit
82d8a1b9af
1 changed files with 1 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
if defined?(Rake) && defined?(Rake.application) && Rake.application.top_level_tasks.grep(/^(default$|test(:|$))/).any?
|
if defined?(Rake.application) && Rake.application.top_level_tasks.grep(/^(default$|test(:|$))/).any?
|
||||||
ENV['RAILS_ENV'] ||= 'test'
|
ENV['RAILS_ENV'] ||= 'test'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue