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"
|
require "rack/handler/puma"
|
||||||
|
|
||||||
class TestPumaUnixSocket < Minitest::Test
|
class TestHandlerGetStrSym < Minitest::Test
|
||||||
def test_handler
|
def test_handler
|
||||||
handler = Rack::Handler.get(:puma)
|
handler = Rack::Handler.get(:puma)
|
||||||
assert_equal Rack::Handler::Puma, handler
|
assert_equal Rack::Handler::Puma, handler
|
||||||
|
@ -46,11 +46,11 @@ class TestPathHandler < Minitest::Test
|
||||||
thread.join if thread
|
thread.join if thread
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
def test_handler_boots
|
def test_handler_boots
|
||||||
skip_on :windows
|
host = windows? ? "127.0.1.1" : "0.0.0.0"
|
||||||
in_handler(app) do |launcher|
|
opts = { Host: host }
|
||||||
hit(["http://0.0.0.0:#{ launcher.connected_port }/test"])
|
in_handler(app, opts) do |launcher|
|
||||||
|
hit(["http://#{host}:#{ launcher.connected_port }/test"])
|
||||||
assert_equal("/test", @input["PATH_INFO"])
|
assert_equal("/test", @input["PATH_INFO"])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue