diff options
author | George Claghorn <george@basecamp.com> | 2018-12-29 07:24:56 -0500 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2018-12-29 07:24:56 -0500 |
commit | 7c4457447e1136979e8ed9d822700c1041e9efa6 (patch) | |
tree | ecfa033f7d0326ee6908fd5df2e9a266a1afa5f8 /railties/test/generators | |
parent | fb173b66138adf1d6940aca3af76d3c62307441d (diff) | |
download | rails-7c4457447e1136979e8ed9d822700c1041e9efa6.tar.gz rails-7c4457447e1136979e8ed9d822700c1041e9efa6.tar.bz2 rails-7c4457447e1136979e8ed9d822700c1041e9efa6.zip |
Don't load Action Mailbox when Active Storage is skipped
Diffstat (limited to 'railties/test/generators')
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index 123290b5e1..7d3b031416 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -440,6 +440,11 @@ class AppGeneratorTest < Rails::Generators::TestCase assert_file "#{application_path}/config/application.rb", /#\s+require\s+["']action_mailbox\/engine["']/ end + def test_generator_skips_action_mailbox_when_skip_active_storage_is_given + run_generator [destination_root, "--skip-active-storage"] + assert_file "#{application_path}/config/application.rb", /#\s+require\s+["']action_mailbox\/engine["']/ + end + def test_app_update_does_not_change_config_target_version run_generator |