Skip to content

Commit

Permalink
add puma
Browse files Browse the repository at this point in the history
  • Loading branch information
rkh committed Mar 8, 2012
1 parent 41c5529 commit de02cb4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/sinatra/base.rb
Expand Up @@ -1566,7 +1566,7 @@ class << self

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

Expand Down
6 changes: 3 additions & 3 deletions test/settings_test.rb
Expand Up @@ -422,9 +422,9 @@ def pub; end
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

Expand Down

0 comments on commit de02cb4

Please sign in to comment.