require File.expand_path '../../lib/evrone/ci/worker', __FILE__ Bundler.require(:test) require 'rspec/autorun' require 'evrone/common/amqp/testing' require 'evrone/ci/message/testing' Dir[File.expand_path("../..", __FILE__) + "/spec/support/**/*.rb"].each {|f| require f} RSpec.configure do |config| config.mock_with :rr config.filter_run_excluding(:amqp => true) if ENV['REAL_AMQP'] config.before(:each) do Evrone::Common::AMQP::Testing.clear Evrone::CI::Worker.reset_config! Evrone::CI::Worker.configure do |c| c.docker.ssh.port = 2223 c.docker.ssh.host = 'localhost' c.docker.create_options = { 'PortSpecs' => ['2022:22'] } end end end