提交 79c47abe 编写于 作者: R Ramon Soares 提交者: José Valim

the folder public/javascripts should be created by default [#4027 status:resolved]

Signed-off-by: NJosé Valim <jose.valim@gmail.com>
上级 36a23460
......@@ -138,8 +138,11 @@ def create_public_stylesheets_files
end
def create_prototype_files
return if options[:skip_prototype]
directory "public/javascripts"
unless options[:skip_prototype]
directory "public/javascripts"
else
empty_directory_with_gitkeep "public/javascripts"
end
end
def create_script_files
......
......@@ -107,6 +107,7 @@ def test_prototype_and_test_unit_are_added_by_default
def test_prototype_and_test_unit_are_skipped_if_required
run_generator [destination_root, "--skip-prototype", "--skip-testunit"]
assert_no_file "public/javascripts/prototype.js"
assert_file "public/javascripts"
assert_no_file "test"
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册