1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Exclude UNIXSocket tests under Windows

This commit is contained in:
Luis Lavena 2012-01-08 16:55:57 -03:00
parent 9470937da9
commit af609a1f90
2 changed files with 6 additions and 4 deletions

View file

@ -1,5 +1,5 @@
require "rbconfig"
require 'test/unit'
require 'rubygems'
require 'socket'
require 'puma/cli'
@ -19,7 +19,7 @@ class TestIntegration < Test::Unit::TestCase
end
def test_stop_via_pumactl
if defined? JRUBY_VERSION
if defined?(JRUBY_VERSION) || RbConfig::CONFIG["host_os"] =~ /mingw|mswin/
assert true
return
end

View file

@ -1,10 +1,12 @@
require "rbconfig"
require 'test/unit'
require 'puma/server'
require 'socket'
# UNIX sockets are not recommended on JRuby
unless defined?(JRUBY_VERSION)
# (or Windows)
unless defined?(JRUBY_VERSION) || RbConfig::CONFIG["host_os"] =~ /mingw|mswin/
class TestPumaUnixSocket < Test::Unit::TestCase
App = lambda { |env| [200, {}, ["Works"]] }