Merge pull request #40952 from jonathanhefner/plugin-dummy-skip-spring
Skip Spring in plugin dummy apps
This commit is contained in:
commit
b4abba3f1e
|
@ -103,6 +103,7 @@ task default: :test
|
||||||
opts = options.transform_keys(&:to_sym).except(*DUMMY_IGNORE_OPTIONS)
|
opts = options.transform_keys(&:to_sym).except(*DUMMY_IGNORE_OPTIONS)
|
||||||
opts[:force] = force
|
opts[:force] = force
|
||||||
opts[:skip_bundle] = true
|
opts[:skip_bundle] = true
|
||||||
|
opts[:skip_spring] = true
|
||||||
opts[:skip_listen] = true
|
opts[:skip_listen] = true
|
||||||
opts[:skip_git] = true
|
opts[:skip_git] = true
|
||||||
opts[:skip_turbolinks] = true
|
opts[:skip_turbolinks] = true
|
||||||
|
|
|
@ -539,6 +539,14 @@ class PluginGeneratorTest < Rails::Generators::TestCase
|
||||||
assert_no_directory "test/dummy/.git"
|
assert_no_directory "test/dummy/.git"
|
||||||
end
|
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
|
def test_skipping_test_files
|
||||||
run_generator [destination_root, "--skip-test"]
|
run_generator [destination_root, "--skip-test"]
|
||||||
assert_no_directory "test"
|
assert_no_directory "test"
|
||||||
|
|
Loading…
Reference in New Issue