diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2016-11-12 15:10:59 -0500 |
---|---|---|
committer | Sean Griffin <sean@seantheprogrammer.com> | 2016-11-12 15:10:59 -0500 |
commit | d2e84fa919156d5faba750e023087f12ac4ff4bb (patch) | |
tree | 75d4385a5821640e83eea58095320f22798d2570 | |
parent | 33d47a09d402160438755d3c59d18985267b4c81 (diff) | |
download | rails-d2e84fa919156d5faba750e023087f12ac4ff4bb.tar.gz rails-d2e84fa919156d5faba750e023087f12ac4ff4bb.tar.bz2 rails-d2e84fa919156d5faba750e023087f12ac4ff4bb.zip |
Add test for #25248
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index 6c6c5613ab..3ec99193e3 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -488,6 +488,16 @@ class AppGeneratorTest < Rails::Generators::TestCase end end + def test_coffeescript_is_skipped_if_required + run_generator [destination_root, "--skip-coffee"] + + assert_file "Gemfile" do |content| + assert_no_match(/coffee-rails/, content) + assert_match(/jquery-rails/, content) + assert_match(/uglifier/, content) + end + end + def test_inclusion_of_jbuilder run_generator assert_gem "jbuilder" |