Sha256: e4793fb990ea18a77a3fa0b53e57a9d9da995240b6850a654fa000a1db2c5a93

Contents?: true

Size: 817 Bytes

Versions: 24

Compression:

Stored size: 817 Bytes

Contents

if ENV['COVERAGE'] || ENV['TRAVIS']
	begin
		require 'simplecov'
		
		SimpleCov.start do
			add_filter "/spec/"
		end
		
		if ENV['TRAVIS']
			require 'coveralls'
			Coveralls.wear!
		end
	rescue LoadError
		warn "Could not load simplecov: #{$!}"
	end
end

require "bundler/setup"
require "async/io"

# This is useful for specs, but I hesitate to monkey patch a core class in the library itself.
class Addrinfo
	def == other
		self.to_s == other.to_s
	end
	
	def != other
		self.to_s != other.to_s
	end
	
	def <=> other
		self.to_s <=> other.to_s
	end
end

# Shared rspec helpers:
require "async/rspec"

RSpec.configure do |config|
	# Enable flags like --only-failures and --next-failure
	config.example_status_persistence_file_path = ".rspec_status"

	config.expect_with :rspec do |c|
		c.syntax = :expect
	end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
async-io-1.12.3 spec/spec_helper.rb
async-io-1.12.2 spec/spec_helper.rb
async-io-1.12.1 spec/spec_helper.rb
async-io-1.12.0 spec/spec_helper.rb
async-io-1.11.0 spec/spec_helper.rb
async-io-1.10.0 spec/spec_helper.rb
async-io-1.9.4 spec/spec_helper.rb
async-io-1.9.3 spec/spec_helper.rb
async-io-1.9.2 spec/spec_helper.rb
async-io-1.8.5 spec/spec_helper.rb
async-io-1.8.4 spec/spec_helper.rb
async-io-1.8.2 spec/spec_helper.rb
async-io-1.8.1 spec/spec_helper.rb
async-io-1.8.0 spec/spec_helper.rb
async-io-1.7.0 spec/spec_helper.rb
async-io-1.6.1 spec/spec_helper.rb
async-io-1.6.0 spec/spec_helper.rb
async-io-1.5.0 spec/spec_helper.rb
async-io-1.4.0 spec/spec_helper.rb
async-io-1.3.0 spec/spec_helper.rb