提交 b8230e93 编写于 作者: J Jeremy Daer

Merge pull request #21936 from y-yagi/do_not_generate_manifest_in_plugins

do not generate manifest.js in plugins
...@@ -226,7 +226,7 @@ def create_lib_files ...@@ -226,7 +226,7 @@ def create_lib_files
end end
def create_assets_manifest_file def create_assets_manifest_file
build(:assets_manifest) unless api? build(:assets_manifest) if !api? && engine?
end end
def create_public_stylesheets_files def create_public_stylesheets_files
......
...@@ -60,6 +60,7 @@ def test_generating_without_options ...@@ -60,6 +60,7 @@ def test_generating_without_options
run_generator run_generator
assert_file "README.rdoc", /Bukkits/ assert_file "README.rdoc", /Bukkits/
assert_no_file "config/routes.rb" assert_no_file "config/routes.rb"
assert_no_file "app/assets/config/bukkits_manifest.js"
assert_file "test/test_helper.rb" do |content| assert_file "test/test_helper.rb" do |content|
assert_match(/require.+test\/dummy\/config\/environment/, content) assert_match(/require.+test\/dummy\/config\/environment/, content)
assert_match(/ActiveRecord::Migrator\.migrations_paths.+test\/dummy\/db\/migrate/, content) assert_match(/ActiveRecord::Migrator\.migrations_paths.+test\/dummy\/db\/migrate/, content)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册