Skip to content

Commit

Permalink
Fix skip_system_test not being preserved in update
Browse files Browse the repository at this point in the history
Previously running app:update always would template an application.rb
file without the `config.generators.system_tests = nil` set, even for
applications that previously had it set.
  • Loading branch information
skipkayhil committed Jul 23, 2022
1 parent 97f13c2 commit 37d0516
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions railties/lib/rails/app_updater.rb
Expand Up @@ -29,6 +29,7 @@ def generator_options
options[:skip_action_text] = !defined?(ActionText::Engine)
options[:skip_action_cable] = !defined?(ActionCable::Engine)
options[:skip_test] = !defined?(Rails::TestUnitRailtie)
options[:skip_system_test] = Rails.application.config.generators.system_tests.nil?
options[:skip_asset_pipeline] = !defined?(Sprockets::Railtie) && !defined?(Propshaft::Railtie)
options[:skip_bootsnap] = !defined?(Bootsnap)
options[:updating] = true
Expand Down

0 comments on commit 37d0516

Please sign in to comment.