Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not run git init in dummy application #28059

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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