mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #41298 from etiennebarrie/remove-setting-rails-env-at-require-time
Stop setting RAILS_ENV when test_unit railtie is loaded
This commit is contained in:
commit
fc96b3bf3e
1 changed files with 0 additions and 4 deletions
|
@ -2,10 +2,6 @@
|
|||
|
||||
require "rails/test_unit/line_filtering"
|
||||
|
||||
if defined?(Rake.application) && Rake.application.top_level_tasks.grep(/^(default$|test(:|$))/).any?
|
||||
ENV["RAILS_ENV"] ||= Rake.application.options.show_tasks ? "development" : "test"
|
||||
end
|
||||
|
||||
module Rails
|
||||
class TestUnitRailtie < Rails::Railtie
|
||||
config.app_generators do |c|
|
||||
|
|
Loading…
Reference in a new issue