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.pre26 spec/spec_helper.rb
evrone-ci-worker-0.2.0.pre25 spec/spec_helper.rb
evrone-ci-worker-0.2.0.pre24 spec/spec_helper.rb
evrone-ci-worker-0.2.0.pre23 spec/spec_helper.rb
evrone-ci-worker-0.2.0.pre22 spec/spec_helper.rb
evrone-ci-worker-0.2.0.pre21 spec/spec_helper.rb
evrone-ci-worker-0.2.0.pre20 spec/spec_helper.rb
evrone-ci-worker-0.2.0.pre19 spec/spec_helper.rb
evrone-ci-worker-0.2.0.pre18 spec/spec_helper.rb
evrone-ci-worker-0.2.0.pre17 spec/spec_helper.rb
evrone-ci-worker-0.2.0.pre15 spec/spec_helper.rb
evrone-ci-worker-0.2.0.pre14 spec/spec_helper.rb
evrone-ci-worker-0.2.0.pre13 spec/spec_helper.rb
evrone-ci-worker-0.2.0.pre12 spec/spec_helper.rb
evrone-ci-worker-0.2.0.pre11 spec/spec_helper.rb
evrone-ci-worker-0.2.0.pre10 spec/spec_helper.rb
evrone-ci-worker-0.2.0.pre9 spec/spec_helper.rb
evrone-ci-worker-0.2.0.pre8 spec/spec_helper.rb
evrone-ci-worker-0.2.0.pre7 spec/spec_helper.rb
evrone-ci-worker-0.2.0.pre6 spec/spec_helper.rb