提交 a4319854 编写于 作者: A Andy Atkinson

Remove redundant test method

上级 48f01f04
......@@ -412,13 +412,6 @@ def test_generator_if_skip_sprockets_is_given
end
end
def test_generator_if_skip_yarn_is_given
run_generator [destination_root, "--skip-yarn"]
assert_no_file "package.json"
assert_no_file "bin/yarn"
end
def test_generator_if_skip_action_cable_is_given
run_generator [destination_root, "--skip-action-cable"]
assert_file "config/application.rb", /#\s+require\s+["']action_cable\/engine["']/
......@@ -524,6 +517,7 @@ def test_generator_for_yarn
def test_generator_for_yarn_skipped
run_generator([destination_root, "--skip-yarn"])
assert_no_file "package.json"
assert_no_file "bin/yarn"
assert_file "config/initializers/assets.rb" do |content|
assert_no_match(/node_modules/, content)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册