Sha256: dbd6915f9d370ea66e9f199e82d13e6b0d4156e25ed5464c2d5a88596ce27192

Contents?: true

Size: 700 Bytes

Versions: 25

Compression:

Stored size: 700 Bytes

Contents

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

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
evrone-ci-worker-0.2.0.pre5 spec/spec_helper.rb
evrone-ci-worker-0.2.0.pre4 spec/spec_helper.rb
evrone-ci-worker-0.2.0.pre3 spec/spec_helper.rb
evrone-ci-worker-0.2.0.pre1 spec/spec_helper.rb
evrone-ci-worker-0.2.0.pre0 spec/spec_helper.rb