提交 3d9d9f86 编写于 作者: D dmathieu

create the dummy app if there's no test_unit but there's a dummy_path

上级 b8118ef4
......@@ -202,7 +202,7 @@ def create_test_files
end
def create_test_dummy_files
return if options[:skip_test_unit]
return if options[:skip_test_unit] && options[:dummy_path] == 'test/dummy'
create_dummy_app
end
......
......@@ -182,6 +182,13 @@ def test_passing_dummy_path_as_a_parameter
assert_file "spec/dummy/config/application.rb"
assert_no_file "test/dummy"
end
def test_creating_dummy_without_tests_but_with_dummy_path
run_generator [destination_root, "--dummy_path", "spec/dummy", "--skip-test-unit"]
assert_file "spec/dummy"
assert_file "spec/dummy/config/application.rb"
assert_no_file "test"
end
def test_skipping_gemspec
run_generator [destination_root, "--skip-gemspec"]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册