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

condition simplified

This commit is contained in:
Oleg Sukhodolsky 2013-05-21 14:00:06 +04:00 committed by Rafael Mendonça França
parent 643e0b23d6
commit 82d8a1b9af

View file

@ -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'
end