提交 855d14dd 编写于 作者: S Stefan Sprenger

Add test for gemspec of the generated engine

上级 e3d7751b
......@@ -169,6 +169,12 @@ def test_create_mountable_application_with_mountable_option
assert_file "app/views/layouts/bukkits/application.html.erb", /<title>Bukkits<\/title>/
end
def test_creating_gemspec
assert_file "bukkits.gemspec", /s.name = "bukkits"/
assert_file "bukkits.gemspec", /s.files = Dir["{app,config,lib}\/**\/*"]/
assert_file "bukkits.gemspec", /s.version = "0.0.1"/
end
def test_passing_dummy_path_as_a_parameter
run_generator [destination_root, "--dummy_path", "spec/dummy"]
assert_file "spec/dummy"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册