aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2012-04-30 00:26:45 -0700
committerJosé Valim <jose.valim@gmail.com>2012-04-30 00:26:45 -0700
commit64a54c3f9e01da5a86564de613191b03195a858c (patch)
treefaf6e003920f222dd26b6db05278187f7fee53fa /railties/test/generators
parentaa89bf78a209e5901d4417625048922b81d9eef1 (diff)
parent5c1109a68e098188803a6232be55dfff1e5e12eb (diff)
downloadrails-64a54c3f9e01da5a86564de613191b03195a858c.tar.gz
rails-64a54c3f9e01da5a86564de613191b03195a858c.tar.bz2
rails-64a54c3f9e01da5a86564de613191b03195a858c.zip
Merge pull request #5530 from malclocke/add_option_to_skip_index.html_on_rails_generate
Added a generator option to skip the public/index.html file
Diffstat (limited to 'railties/test/generators')
-rw-r--r--railties/test/generators/app_generator_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb
index ef6877ed30..94983c504c 100644
--- a/railties/test/generators/app_generator_test.rb
+++ b/railties/test/generators/app_generator_test.rb
@@ -250,6 +250,13 @@ class AppGeneratorTest < Rails::Generators::TestCase
end
end
+ def test_generator_if_skip_index_html_is_given
+ run_generator [destination_root, "--skip-index-html"]
+ assert_no_file "public/index.html"
+ assert_no_file "app/assets/images/rails.png"
+ assert_file "app/assets/images/.gitkeep"
+ end
+
def test_creation_of_a_test_directory
run_generator
assert_file 'test'