diff options
author | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-12-28 19:27:55 +0200 |
---|---|---|
committer | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-12-28 19:32:53 +0200 |
commit | e306c8c4d4ad75f28aaeb963315d13b7a460c091 (patch) | |
tree | 0b92aa69960236d5a6cbe08da03eee99b932c4f0 /railties/test | |
parent | 3ecb754786998229ac81dbca9c80505c9b057ff9 (diff) | |
download | rails-e306c8c4d4ad75f28aaeb963315d13b7a460c091.tar.gz rails-e306c8c4d4ad75f28aaeb963315d13b7a460c091.tar.bz2 rails-e306c8c4d4ad75f28aaeb963315d13b7a460c091.zip |
Ensure that the app generator skips action mailbox when `--skip-active-record` is given
Related to https://github.com/rails/rails/pull/34816#issuecomment-450378366
Follow up https://github.com/rails/rails/commit/ddaf06779aa51d5d1ca462c21c53f2ed169a0d2f
Diffstat (limited to 'railties/test')
-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 154cd3e80c..123290b5e1 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -435,6 +435,11 @@ class AppGeneratorTest < Rails::Generators::TestCase assert_no_file "#{app_root}/config/storage.yml" end + def test_generator_skips_action_mailbox_when_skip_active_record_is_given + run_generator [destination_root, "--skip-active-record"] + 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 |