Skip to content

Commit

Permalink
rake -T should load development env by default, not test
Browse files Browse the repository at this point in the history
  • Loading branch information
timolehto committed May 10, 2017
1 parent 97bd56e commit 9cd3745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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
Expand Down

0 comments on commit 9cd3745

Please sign in to comment.