mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
parent
fbd33b911a
commit
23f99ed7eb
1 changed files with 2 additions and 3 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue