aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-01-23 10:04:24 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-01-23 10:07:15 +0900
commit7fa5f38c8e930188e866943f6adeccd214808b2a (patch)
tree896983011d092692874e746c71500753ef52877e /railties/test/generators
parent2d61745af4c6f134d1ff4a07d3a702353cd06005 (diff)
downloadrails-7fa5f38c8e930188e866943f6adeccd214808b2a.tar.gz
rails-7fa5f38c8e930188e866943f6adeccd214808b2a.tar.bz2
rails-7fa5f38c8e930188e866943f6adeccd214808b2a.zip
do not run `git init` when specify the `pretend` option
When specifying the `pretend` option, expect that no processing will be done, so do not execute `git init` as well.
Diffstat (limited to 'railties/test/generators')
-rw-r--r--railties/test/generators/app_generator_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb
index 35f7d519d8..ee996dc9d6 100644
--- a/railties/test/generators/app_generator_test.rb
+++ b/railties/test/generators/app_generator_test.rb
@@ -592,6 +592,7 @@ class AppGeneratorTest < Rails::Generators::TestCase
def test_pretend_option
output = run_generator [File.join(destination_root, "myapp"), "--pretend"]
assert_no_match(/run bundle install/, output)
+ assert_no_match(/run git init/, output)
end
def test_application_name_with_spaces