mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
rake -T should load development env by default, not test
This commit is contained in:
parent
97bd56e674
commit
9cd37459f1
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
require "rails/test_unit/line_filtering"
|
require "rails/test_unit/line_filtering"
|
||||||
|
|
||||||
if 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"
|
ENV["RAILS_ENV"] ||= Rake.application.options.show_tasks ? "development" : "test"
|
||||||
end
|
end
|
||||||
|
|
||||||
module Rails
|
module Rails
|
||||||
|
|
Loading…
Reference in a new issue