mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
add puma
This commit is contained in:
parent
41c552993b
commit
de02cb427b
2 changed files with 4 additions and 4 deletions
|
@ -1566,7 +1566,7 @@ module Sinatra
|
|||
|
||||
set :run, false # start server via at-exit hook?
|
||||
set :running, false # is the built-in server running now?
|
||||
set :server, %w[thin mongrel webrick]
|
||||
set :server, %w[thin puma mongrel webrick]
|
||||
set :bind, '0.0.0.0'
|
||||
set :port, 4567
|
||||
|
||||
|
|
|
@ -422,9 +422,9 @@ class SettingsTest < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
describe 'server' do
|
||||
it 'is one of thin, mongrel, webrick' do
|
||||
assert_equal %w[thin mongrel webrick], @base.server
|
||||
assert_equal %w[thin mongrel webrick], @application.server
|
||||
it 'is one of thin, puma, mongrel, webrick' do
|
||||
assert_equal %w[thin puma mongrel webrick], @base.server
|
||||
assert_equal %w[thin puma mongrel webrick], @application.server
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue