1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #40952 from jonathanhefner/plugin-dummy-skip-spring

Skip Spring in plugin dummy apps
This commit is contained in:
Eugene Kenny 2020-12-27 23:09:15 +00:00 committed by GitHub
commit b4abba3f1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View file

@ -103,6 +103,7 @@ task default: :test
opts = options.transform_keys(&:to_sym).except(*DUMMY_IGNORE_OPTIONS)
opts[:force] = force
opts[:skip_bundle] = true
opts[:skip_spring] = true
opts[:skip_listen] = true
opts[:skip_git] = true
opts[:skip_turbolinks] = true

View file

@ -539,6 +539,14 @@ class PluginGeneratorTest < Rails::Generators::TestCase
assert_no_directory "test/dummy/.git"
end
def test_spring_binstub_is_not_generated_in_dummy_application
run_generator
assert_no_file "test/dummy/bin/spring"
assert_file "test/dummy/bin/rails" do |contents|
assert_no_match %r/spring/, contents
end
end
def test_skipping_test_files
run_generator [destination_root, "--skip-test"]
assert_no_directory "test"