diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-12-24 21:04:25 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-12-24 21:04:25 +0900 |
commit | 0eefc8fdacad17eeec7840f94848e6f7a46e1a2e (patch) | |
tree | d51393fad03e8c0007b16d2650d9bea79fc02483 /railties/test/generators/app_generator_test.rb | |
parent | 1a5bf01fe024eb1d91903094327d937f7abcb24d (diff) | |
download | rails-0eefc8fdacad17eeec7840f94848e6f7a46e1a2e.tar.gz rails-0eefc8fdacad17eeec7840f94848e6f7a46e1a2e.tar.bz2 rails-0eefc8fdacad17eeec7840f94848e6f7a46e1a2e.zip |
Move `test_skip_bundle` to `AppGeneratorTest`
`skip_bundle` option was removed from plugin generator in 9b72fcc3c22a6f75f37f52dd6cb682bc00c51cf0.
Diffstat (limited to 'railties/test/generators/app_generator_test.rb')
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index 110aca70c1..793cce2999 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -105,6 +105,15 @@ class AppGeneratorTest < Rails::Generators::TestCase ::DEFAULT_APP_FILES end + def test_skip_bundle + assert_not_called(generator([destination_root], skip_bundle: true), :bundle_command) do + quietly { generator.invoke_all } + # skip_bundle is only about running bundle install, ensure the Gemfile is still + # generated. + assert_file "Gemfile" + end + end + def test_assets run_generator |