提交 0eefc8fd 编写于 作者: Y yuuji.yaginuma

Move `test_skip_bundle` to `AppGeneratorTest`

`skip_bundle` option was removed from plugin generator in 9b72fcc3.
上级 1a5bf01f
...@@ -105,6 +105,15 @@ def default_files ...@@ -105,6 +105,15 @@ def default_files
::DEFAULT_APP_FILES ::DEFAULT_APP_FILES
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_assets def test_assets
run_generator run_generator
......
...@@ -103,15 +103,6 @@ def test_skip_gemfile ...@@ -103,15 +103,6 @@ def test_skip_gemfile
end end
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 def test_skip_git
run_generator [destination_root, "--skip-git", "--full"] run_generator [destination_root, "--skip-git", "--full"]
assert_no_file(".gitignore") assert_no_file(".gitignore")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册