spec/spec_helper.rb in async-dns-0.10.0 vs spec/spec_helper.rb in async-dns-0.12.0

- old
+ new

@@ -21,33 +21,11 @@ warn "Could not load simplecov: #{$!}" end end require "bundler/setup" -require "pry" +require "async/rspec" require "async/dns" -require "pp" - -RSpec.shared_context "reactor" do - let(:reactor) {Async::Reactor.new} - - around(:each) do |example| - result = nil - - reactor.run do - result = example.run - - # Force the reactor to stop running if the result was an error. - if result.is_a? Exception - reactor.stop - end - end - - reactor.close - - result - end -end # abort "Warning, ulimit is too low!" if `ulimit -n`.to_i < 10000 RSpec.configure do |config| # Enable flags like --only-failures and --next-failure