Skip to content

Commit

Permalink
Merge pull request #28059 from y-yagi/do_not_run_git_init_inside_test…
Browse files Browse the repository at this point in the history
…_dummy

Do not run `git init` in dummy application
  • Loading branch information
guilleiguaran committed Feb 20, 2017
2 parents 084ddba + 38c2373 commit a2234c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Expand Up @@ -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
Expand All @@ -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"
Expand Down
1 change: 1 addition & 0 deletions railties/test/generators/plugin_generator_test.rb
Expand Up @@ -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
Expand Down

0 comments on commit a2234c5

Please sign in to comment.