提交 f6c93495 编写于 作者: J José Valim

Merge pull request #3287 from sgerrand/vendor_assets_javascripts_should_be_created

Ensure that the directory 'vendor/assets/javascripts' is created by AppGenerator
......@@ -122,10 +122,15 @@ def tmp
end
def vendor
vendor_javascripts
vendor_stylesheets
vendor_plugins
end
def vendor_javascripts
empty_directory_with_gitkeep "vendor/assets/javascripts"
end
def vendor_stylesheets
empty_directory_with_gitkeep "vendor/assets/stylesheets"
end
......
......@@ -203,6 +203,11 @@ def test_creation_of_a_test_directory
assert_file 'test'
end
def test_creation_of_vendor_assets_javascripts_directory
run_generator
assert_file "vendor/assets/javascripts"
end
def test_jquery_is_the_default_javascript_library
run_generator
assert_file "app/assets/javascripts/application.js" do |contents|
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册