aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2017-05-11 17:51:34 -0700
committerGitHub <noreply@github.com>2017-05-11 17:51:34 -0700
commitf09196153f2c5b9cc215d727e09aec84ff16fcb3 (patch)
tree80cd8c07e0361726281f19fefcde00cce67fe9bb
parentf96c14096c0b5bbb5973b791b5a7bdb8f403217a (diff)
parent9cd37459f1a6bbaeddd48f1f4fff3c3f112ed4e1 (diff)
downloadrails-f09196153f2c5b9cc215d727e09aec84ff16fcb3.tar.gz
rails-f09196153f2c5b9cc215d727e09aec84ff16fcb3.tar.bz2
rails-f09196153f2c5b9cc215d727e09aec84ff16fcb3.zip
Merge pull request #29029 from timolehto/master
rake -T should load development env by default, not test
-rw-r--r--railties/lib/rails/test_unit/railtie.rb2
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 9cc3f73a9c..443e743421 100644
--- a/railties/lib/rails/test_unit/railtie.rb
+++ b/railties/lib/rails/test_unit/railtie.rb
@@ -1,7 +1,7 @@
require "rails/test_unit/line_filtering"
if defined?(Rake.application) && Rake.application.top_level_tasks.grep(/^(default$|test(:|$))/).any?
- ENV["RAILS_ENV"] ||= "test"
+ ENV["RAILS_ENV"] ||= Rake.application.options.show_tasks ? "development" : "test"
end
module Rails