aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorGeorge Claghorn <george.claghorn@gmail.com>2018-12-28 13:34:20 -0500
committerGitHub <noreply@github.com>2018-12-28 13:34:20 -0500
commit7dcb16b28bf0ca4e706f3b08a0153092993f3220 (patch)
treefcc654f9b6ddccd6ba5aed6d628e7c07a6bca401 /railties
parent837f602fa1b3281113dac965a8ef96de3cac8b02 (diff)
parente306c8c4d4ad75f28aaeb963315d13b7a460c091 (diff)
downloadrails-7dcb16b28bf0ca4e706f3b08a0153092993f3220.tar.gz
rails-7dcb16b28bf0ca4e706f3b08a0153092993f3220.tar.bz2
rails-7dcb16b28bf0ca4e706f3b08a0153092993f3220.zip
Merge pull request #34820 from bogdanvlviv/extract-text-from-34816
Ensure that the app generator skips action mailbox when `--skip-active-record` is given
Diffstat (limited to 'railties')
-rw-r--r--railties/test/generators/app_generator_test.rb5
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