1
0
Fork 0
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:
Rafael França 2021-02-01 17:09:32 -05:00 committed by GitHub
commit fc96b3bf3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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|