1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Ignore yarn error log file

This commit is contained in:
yuuji.yaginuma 2017-02-03 12:04:10 +09:00
parent 65bf1c6005
commit 422f00b32f
2 changed files with 6 additions and 0 deletions

View file

@ -23,6 +23,7 @@
<% unless options[:skip_yarn] -%>
/vendor/node_modules
/vendor/yarn-error.log
<% end -%>
.byebug_history

View file

@ -508,6 +508,11 @@ class AppGeneratorTest < Rails::Generators::TestCase
assert_file "config/initializers/assets.rb" do |content|
assert_no_match(/node_modules/, content)
end
assert_file ".gitignore" do |content|
assert_no_match(/vendor\/node_modules/, content)
assert_no_match(/vendor\/yarn-error\.log/, content)
end
end
def test_inclusion_of_jbuilder