diff options
author | Konstantin Shabanov <etehtsea@gmail.com> | 2013-11-05 22:14:03 +0400 |
---|---|---|
committer | Konstantin Shabanov <etehtsea@gmail.com> | 2013-11-11 19:21:24 +0400 |
commit | a3dbb962fa81ba170aece567235a17e16770b8c8 (patch) | |
tree | bfa0383398e7b20939a15c350fcf59beebcc2b15 /railties/lib/rails/test_unit | |
parent | 331c59f47c04c4f924ff44fa6b9b44a141eb00c6 (diff) | |
download | rails-a3dbb962fa81ba170aece567235a17e16770b8c8.tar.gz rails-a3dbb962fa81ba170aece567235a17e16770b8c8.tar.bz2 rails-a3dbb962fa81ba170aece567235a17e16770b8c8.zip |
Don't load test env by default
Diffstat (limited to 'railties/lib/rails/test_unit')
-rw-r--r-- | railties/lib/rails/test_unit/railtie.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/test_unit/railtie.rb b/railties/lib/rails/test_unit/railtie.rb index 75180ff978..878b9b7930 100644 --- a/railties/lib/rails/test_unit/railtie.rb +++ b/railties/lib/rails/test_unit/railtie.rb @@ -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 |