File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
lib/rails/generators/rails/plugin Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,7 @@ def generate_test_dummy(force = false)
103
103
opts = options . transform_keys ( &:to_sym ) . except ( *DUMMY_IGNORE_OPTIONS )
104
104
opts [ :force ] = force
105
105
opts [ :skip_bundle ] = true
106
+ opts [ :skip_spring ] = true
106
107
opts [ :skip_listen ] = true
107
108
opts [ :skip_git ] = true
108
109
opts [ :skip_turbolinks ] = true
Original file line number Diff line number Diff line change @@ -539,6 +539,14 @@ def test_unnecessary_files_are_not_generated_in_dummy_application
539
539
assert_no_directory "test/dummy/.git"
540
540
end
541
541
542
+ def test_spring_binstub_is_not_generated_in_dummy_application
543
+ run_generator
544
+ assert_no_file "test/dummy/bin/spring"
545
+ assert_file "test/dummy/bin/rails" do |contents |
546
+ assert_no_match %r/spring/ , contents
547
+ end
548
+ end
549
+
542
550
def test_skipping_test_files
543
551
run_generator [ destination_root , "--skip-test" ]
544
552
assert_no_directory "test"
You can’t perform that action at this time.
0 commit comments