require File.dirname(__FILE__) + '/../lib/junkie' require 'bundler/setup' require 'rspec' require 'eventmachine' require 'fiber' require 'webmock/rspec' RSpec.configure do |config| end # Helper module that can be included into test cases module EMHelper # wraps a given block in a EM event loop and a fiber # # @param [Block] block which is called inside an event loop and a fiber def em(&block) EM.run do Fiber.new do block.call EM.stop end.resume end end end