Skip to content

Commit

Permalink
Changes per comments
Browse files Browse the repository at this point in the history
  • Loading branch information
MSP-Greg committed Jan 23, 2023
1 parent adadf5a commit 8ae6e7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/rack/handler/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,5 @@ class << self
end
end
else
raise "Rack 3 must be used with the Rackup gem"
raise "You must install the rackup gem when using Rack 3"
end
9 changes: 4 additions & 5 deletions test/test_rack_handler.rb
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
require_relative "helper"

require "rack"

module TestRackUp
if Rack::RELEASE < '3'
require "rack/handler/puma"
if ENV.key? "PUMA_CI_RACK_2"
require "rack"
RACK_HANDLER_MOD = ::Rack::Handler
else
require "rackup"
require "rack/handler/puma"
RACK_HANDLER_MOD = ::Rackup::Handler
end

require "rack/handler/puma"

class TestHandlerGetStrSym < Minitest::Test
def test_handler
handler = RACK_HANDLER_MOD.get(:puma)
Expand Down

0 comments on commit 8ae6e7b

Please sign in to comment.