diff options
author | Oleg Sukhodolsky <os97673@gmail.com> | 2013-05-21 14:00:06 +0400 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-05-28 12:11:42 -0300 |
commit | 82d8a1b9af3640aa80c6ad0274c79f555a0c99d4 (patch) | |
tree | c04175a8145f82d4488d58f5627ba99a327fd8e1 /railties | |
parent | 643e0b23d6483dfe8e7b10f690a940c4c490df4e (diff) | |
download | rails-82d8a1b9af3640aa80c6ad0274c79f555a0c99d4.tar.gz rails-82d8a1b9af3640aa80c6ad0274c79f555a0c99d4.tar.bz2 rails-82d8a1b9af3640aa80c6ad0274c79f555a0c99d4.zip |
condition simplified
Diffstat (limited to 'railties')
-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 598140284a..75180ff978 100644 --- a/railties/lib/rails/test_unit/railtie.rb +++ b/railties/lib/rails/test_unit/railtie.rb @@ -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 |