mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
windows add two tests - test\test_rack_handler.rb
This commit is contained in:
parent
72882f2319
commit
4bb40e117f
1 changed files with 5 additions and 5 deletions
|
@ -2,7 +2,7 @@ require_relative "helper"
|
|||
|
||||
require "rack/handler/puma"
|
||||
|
||||
class TestPumaUnixSocket < Minitest::Test
|
||||
class TestHandlerGetStrSym < Minitest::Test
|
||||
def test_handler
|
||||
handler = Rack::Handler.get(:puma)
|
||||
assert_equal Rack::Handler::Puma, handler
|
||||
|
@ -46,11 +46,11 @@ class TestPathHandler < Minitest::Test
|
|||
thread.join if thread
|
||||
end
|
||||
|
||||
|
||||
def test_handler_boots
|
||||
skip_on :windows
|
||||
in_handler(app) do |launcher|
|
||||
hit(["http://0.0.0.0:#{ launcher.connected_port }/test"])
|
||||
host = windows? ? "127.0.1.1" : "0.0.0.0"
|
||||
opts = { Host: host }
|
||||
in_handler(app, opts) do |launcher|
|
||||
hit(["http://#{host}:#{ launcher.connected_port }/test"])
|
||||
assert_equal("/test", @input["PATH_INFO"])
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue