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

fix broken tests (#27308)

Follow up to 0d20530e5e
This commit is contained in:
Yuji Yaginuma 2016-12-09 12:08:13 +09:00 committed by David Heinemeier Hansson
parent fbd33b911a
commit 23f99ed7eb

View file

@ -495,10 +495,10 @@ class AppGeneratorTest < Rails::Generators::TestCase
end
def test_generator_for_yarn_skipped
run_generator([destination_root])
run_generator([destination_root, "--skip-yarn"])
assert_no_file "vendor/package.json"
assert_file "config/environments/production.rb" do |content|
assert_file "config/initializers/assets.rb" do |content|
assert_no_match(/node_modules/, content)
end
end
@ -741,7 +741,6 @@ class AppGeneratorTest < Rails::Generators::TestCase
test/helpers
test/integration
tmp
vendor/assets/stylesheets
)
folders_with_keep.each do |folder|
assert_file("#{folder}/.keep")