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

Merge pull request #27891 from y-yagi/ignore_yarn_error_log

Ignore yarn error log file
This commit is contained in:
Eileen M. Uchitelle 2017-02-03 08:17:42 -05:00 committed by GitHub
commit 7ca367238d
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