aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorbogdanvlviv <bogdanvlviv@gmail.com>2018-02-23 00:04:47 +0200
committerbogdanvlviv <bogdanvlviv@gmail.com>2018-02-23 01:23:59 +0200
commitdcdb8e72cc2c4e57334e0de94f516e53ff028de8 (patch)
tree9593e5e59f676ae1d1baa05e79958487e712e0bd /railties/test
parentf85c77bef9efd8ffa97a59e87320e55e486e30c2 (diff)
downloadrails-dcdb8e72cc2c4e57334e0de94f516e53ff028de8.tar.gz
rails-dcdb8e72cc2c4e57334e0de94f516e53ff028de8.tar.bz2
rails-dcdb8e72cc2c4e57334e0de94f516e53ff028de8.zip
Comment `require "active_storage/engine"` in `bin/rails` of plugin if `--skip-active-storage`
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/generators/plugin_generator_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/test/generators/plugin_generator_test.rb b/railties/test/generators/plugin_generator_test.rb
index fc7584c175..f3b9e0204e 100644
--- a/railties/test/generators/plugin_generator_test.rb
+++ b/railties/test/generators/plugin_generator_test.rb
@@ -82,11 +82,12 @@ class PluginGeneratorTest < Rails::Generators::TestCase
end
def test_generating_in_full_mode_with_almost_of_all_skip_options
- run_generator [destination_root, "--full", "-M", "-O", "-C", "-S", "-T"]
+ run_generator [destination_root, "--full", "-M", "-O", "-C", "-S", "-T", "--skip-active-storage"]
assert_file "bin/rails" do |content|
assert_no_match(/\s+require\s+["']rails\/all["']/, content)
end
assert_file "bin/rails", /#\s+require\s+["']active_record\/railtie["']/
+ assert_file "bin/rails", /#\s+require\s+["']active_storage\/engine["']/
assert_file "bin/rails", /#\s+require\s+["']action_mailer\/railtie["']/
assert_file "bin/rails", /#\s+require\s+["']action_cable\/engine["']/
assert_file "bin/rails", /#\s+require\s+["']sprockets\/railtie["']/