aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators/app_generator_test.rb
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2017-08-15 16:50:10 -0400
committerGitHub <noreply@github.com>2017-08-15 16:50:10 -0400
commit692fab26b142c724f0b824db5029c70a88676808 (patch)
tree580a413396820b617e1479a9bb87316b52d8c9b9 /railties/test/generators/app_generator_test.rb
parentd8bf5d73c39ff6758b3a86a58b1b096006f4bb42 (diff)
parent1a1f319cd498ee926aa7b0e3481b213de59be041 (diff)
downloadrails-692fab26b142c724f0b824db5029c70a88676808.tar.gz
rails-692fab26b142c724f0b824db5029c70a88676808.tar.bz2
rails-692fab26b142c724f0b824db5029c70a88676808.zip
Merge pull request #30238 from bogdanvlviv/add-skip_yarn-for-plugin_generator
Add `--skip-yarn` option to the plugin generator
Diffstat (limited to 'railties/test/generators/app_generator_test.rb')
-rw-r--r--railties/test/generators/app_generator_test.rb26
1 files changed, 0 insertions, 26 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb
index 1183dcd34d..94a685393b 100644
--- a/railties/test/generators/app_generator_test.rb
+++ b/railties/test/generators/app_generator_test.rb
@@ -584,32 +584,6 @@ class AppGeneratorTest < Rails::Generators::TestCase
end
end
- def test_generator_for_yarn
- run_generator([destination_root])
- assert_file "package.json", /dependencies/
- assert_file "config/initializers/assets.rb", /node_modules/
-
- assert_file ".gitignore" do |content|
- assert_match(/node_modules/, content)
- assert_match(/yarn-error\.log/, content)
- end
- end
-
- def test_generator_for_yarn_skipped
- run_generator([destination_root, "--skip-yarn"])
- assert_no_file "package.json"
- assert_no_file "bin/yarn"
-
- assert_file "config/initializers/assets.rb" do |content|
- assert_no_match(/node_modules/, content)
- end
-
- assert_file ".gitignore" do |content|
- assert_no_match(/node_modules/, content)
- assert_no_match(/yarn-error\.log/, content)
- end
- end
-
def test_inclusion_of_jbuilder
run_generator
assert_gem "jbuilder"