提交 22be5ca8 编写于 作者: S Stefan Sprenger

Improve test assertion

上级 360b98f0
......@@ -199,7 +199,9 @@ def test_creating_dummy_without_tests_but_with_dummy_path
def test_skipping_test_unit
run_generator [destination_root, "--skip-test-unit"]
assert_no_file "test"
assert_no_match(/s.test_files = Dir\["test\/\*\*\/\*"\]/, File.read(File.join(destination_root, "bukkits.gemspec")))
assert_file "bukkits.gemspec" do |contents|
assert_no_match /s.test_files = Dir\["test\/\*\*\/\*"\]/, contents
end
end
def test_skipping_gemspec
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册