Sha256: f96484afe051500d6b48624107d56b8feb89c69ffc48816c0f5ce198004dcc07

Contents?: true

Size: 732 Bytes

Versions: 1

Compression:

Stored size: 732 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"
require "async/tcp_socket"
require "async/udp_socket"

RSpec.shared_context "reactor" do
	let(:reactor) {Async::Reactor.new}
	
	around(:each) do |example|
		reactor.run do
			example.run
		end
		
		reactor.close
	end
end

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

1 entries across 1 versions & 1 rubygems

Version Path
rubydns-2.0.0.pre.rc1 spec/spec_helper.rb