File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ def database_gemfile_entry
181
181
def webserver_gemfile_entry
182
182
return [ ] if options [ :skip_puma ]
183
183
comment = 'Use Puma as the app server'
184
- GemfileEntry . new ( 'puma' , nil , comment )
184
+ GemfileEntry . new ( 'puma' , '~> 3.0' , comment )
185
185
end
186
186
187
187
def include_all_railties?
Original file line number Diff line number Diff line change @@ -366,6 +366,11 @@ def test_generator_without_skips
366
366
end
367
367
end
368
368
369
+ def test_generator_defaults_to_puma_version
370
+ run_generator [ destination_root ]
371
+ assert_gem "puma" , "'~> 3.0'"
372
+ end
373
+
369
374
def test_generator_if_skip_puma_is_given
370
375
run_generator [ destination_root , "--skip-puma" ]
371
376
assert_no_file "config/puma.rb"
You can’t perform that action at this time.
0 commit comments