aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-12-24 21:04:25 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-12-24 21:04:25 +0900
commit0eefc8fdacad17eeec7840f94848e6f7a46e1a2e (patch)
treed51393fad03e8c0007b16d2650d9bea79fc02483 /railties
parent1a5bf01fe024eb1d91903094327d937f7abcb24d (diff)
downloadrails-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')
-rw-r--r--railties/test/generators/app_generator_test.rb9
-rw-r--r--railties/test/generators/shared_generator_tests.rb9
2 files changed, 9 insertions, 9 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
diff --git a/railties/test/generators/shared_generator_tests.rb b/railties/test/generators/shared_generator_tests.rb
index 6b746f3fed..7a746f5b62 100644
--- a/railties/test/generators/shared_generator_tests.rb
+++ b/railties/test/generators/shared_generator_tests.rb
@@ -103,15 +103,6 @@ module SharedGeneratorTests
end
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_skip_git
run_generator [destination_root, "--skip-git", "--full"]
assert_no_file(".gitignore")