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

Don't load test env by default

This commit is contained in:
Konstantin Shabanov 2013-11-05 22:14:03 +04:00
parent 331c59f47c
commit a3dbb962fa

View file

@ -1,4 +1,4 @@
if defined?(Rake.application) && Rake.application.top_level_tasks.grep(/^(default$|test(:|$))/).any?
if defined?(Rake.application) && Rake.application.top_level_tasks.grep(/^test(?::|$)/).any?
ENV['RAILS_ENV'] ||= 'test'
end