From 8cc5a6e180f141d9ef3db3dddcad969f1bca9ec7 Mon Sep 17 00:00:00 2001 From: bogdanvlviv Date: Wed, 9 Aug 2017 18:56:33 +0300 Subject: `--skip-action-cable` pass throughs `rails plugin new` --- railties/test/generators/plugin_generator_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'railties/test/generators') diff --git a/railties/test/generators/plugin_generator_test.rb b/railties/test/generators/plugin_generator_test.rb index 53d4ceb25a..cf581ce891 100644 --- a/railties/test/generators/plugin_generator_test.rb +++ b/railties/test/generators/plugin_generator_test.rb @@ -234,6 +234,12 @@ class PluginGeneratorTest < Rails::Generators::TestCase def test_action_cable_is_removed_from_frameworks_if_skip_action_cable_is_given run_generator [destination_root, "--skip-action-cable"] assert_file "test/dummy/config/application.rb", /#\s+require\s+["']action_cable\/engine["']/ + assert_no_file "test/dummy/config/cable.yml" + assert_no_file "test/dummy/app/assets/javascripts/cable.js" + assert_no_directory "test/dummy/app/channels" + assert_file "Gemfile" do |content| + assert_no_match(/redis/, content) + end end def test_ensure_that_database_option_is_passed_to_app_generator -- cgit v1.2.3