Permalink
Browse files

Merge pull request #28059 from y-yagi/do_not_run_git_init_inside_test…

…_dummy

Do not run `git init` in dummy application
  • Loading branch information...
guilleiguaran committed Feb 20, 2017
2 parents 084ddba + 38c2373 commit a2234c5f68edebe7f842873f0c0d7c53b439861c
@@ -91,6 +91,7 @@ def generate_test_dummy(force = false)
opts[:skip_bundle] = true
opts[:api] = options.api?
opts[:skip_listen] = true
opts[:skip_git] = true
invoke Rails::Generators::AppGenerator,
[ File.expand_path(dummy_path, destination_root) ], opts
@@ -112,7 +113,6 @@ def test_dummy_assets
def test_dummy_clean
inside dummy_path do
remove_file ".gitignore"
remove_file "db/seeds.rb"
remove_file "doc"
remove_file "Gemfile"
@@ -491,6 +491,7 @@ def test_unnecessary_files_are_not_generated_in_dummy_application
assert_no_directory "test/dummy/doc"
assert_no_directory "test/dummy/test"
assert_no_directory "test/dummy/vendor"
assert_no_directory "test/dummy/.git"
end
def test_skipping_test_files

0 comments on commit a2234c5

Please sign in to comment.