Sha256: c3dfe1b583d80c0a7bdf89025385031be7e7aaeeaa83f5588a594d25ad0629c1

Contents?: true

Size: 729 Bytes

Versions: 4

Compression:

Stored size: 729 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::Task.current.reactor}
	
	around(:each) do |example|
		Async::Reactor.run do
			example.run
		end
	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

4 entries across 4 versions & 1 rubygems

Version Path
async-0.12.0 spec/spec_helper.rb
async-0.11.1 spec/spec_helper.rb
async-0.11.0 spec/spec_helper.rb
async-0.10.0 spec/spec_helper.rb