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:
commit
b4abba3f1e
2 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue