Sha256: 01ae094af45317f91de590867d7a1ee4a0bb5eb88a93caf319e9b85653d77854

Contents?: true

Size: 381 Bytes

Versions: 45

Compression:

Stored size: 381 Bytes

Contents

$LOAD_PATH.unshift File.dirname(__FILE__)
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)

require 'rspec'
require 'cool.io'

def unused_port
  s = TCPServer.open(0)
  port = s.addr[1]
  s.close
  port
end

RSpec.configure do |c|
  if RUBY_PLATFORM =~ /mingw|mswin/
    $stderr.puts "Skip some specs on Windows"
    c.filter_run_excluding :env => :exclude_win
  end
end

Version data entries

45 entries across 45 versions & 6 rubygems

Version Path
cool.io-1.4.1-x86-mingw32 spec/spec_helper.rb
cool.io-1.4.1-x64-mingw32 spec/spec_helper.rb
cool.io-1.4.1 spec/spec_helper.rb
cool.io-1.4.0 spec/spec_helper.rb
cool.io-1.3.1 spec/spec_helper.rb