Sha256: bc98530c83c36543cbdf1ae78dcb89970e998f7f80cd68c5c962b3eec402c8d2

Contents?: true

Size: 515 Bytes

Versions: 25

Compression:

Stored size: 515 Bytes

Contents

require 'spec_helper'

describe Evrone::CI::Worker::DockerStartContainer, run_docker: true do
  let(:exit_code)   { 0 }
  let(:app)         { ->(_) { exit_code } }
  let(:job)         { create :job }
  let(:env)         { OpenStruct.new job: job }
  let(:mid)         { described_class.new app }

  subject { mid.call env }

  it "should be" do
    expect(subject).to eq 0

    expect(env.ssh).to be
    expect(env.container).to be
    expect(env.docker_repo_dir.to_s).to eq "/home/ci/evrone/test-repo"
  end

end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
evrone-ci-worker-0.2.0.pre27 spec/lib/worker/middlewares/docker_start_container_spec.rb
evrone-ci-worker-0.2.0.pre26 spec/lib/worker/middlewares/docker_start_container_spec.rb
evrone-ci-worker-0.2.0.pre25 spec/lib/worker/middlewares/docker_start_container_spec.rb
evrone-ci-worker-0.2.0.pre24 spec/lib/worker/middlewares/docker_start_container_spec.rb
evrone-ci-worker-0.2.0.pre23 spec/lib/worker/middlewares/docker_start_container_spec.rb
evrone-ci-worker-0.2.0.pre22 spec/lib/worker/middlewares/docker_start_container_spec.rb
evrone-ci-worker-0.2.0.pre21 spec/lib/worker/middlewares/docker_start_container_spec.rb
evrone-ci-worker-0.2.0.pre20 spec/lib/worker/middlewares/docker_start_container_spec.rb
evrone-ci-worker-0.2.0.pre19 spec/lib/worker/middlewares/docker_start_container_spec.rb
evrone-ci-worker-0.2.0.pre18 spec/lib/worker/middlewares/docker_start_container_spec.rb
evrone-ci-worker-0.2.0.pre17 spec/lib/worker/middlewares/docker_start_container_spec.rb
evrone-ci-worker-0.2.0.pre15 spec/lib/worker/middlewares/docker_start_container_spec.rb
evrone-ci-worker-0.2.0.pre14 spec/lib/worker/middlewares/docker_start_container_spec.rb
evrone-ci-worker-0.2.0.pre13 spec/lib/worker/middlewares/docker_start_container_spec.rb
evrone-ci-worker-0.2.0.pre12 spec/lib/worker/middlewares/docker_start_container_spec.rb
evrone-ci-worker-0.2.0.pre11 spec/lib/worker/middlewares/docker_start_container_spec.rb
evrone-ci-worker-0.2.0.pre10 spec/lib/worker/middlewares/docker_start_container_spec.rb
evrone-ci-worker-0.2.0.pre9 spec/lib/worker/middlewares/docker_start_container_spec.rb
evrone-ci-worker-0.2.0.pre8 spec/lib/worker/middlewares/docker_start_container_spec.rb
evrone-ci-worker-0.2.0.pre7 spec/lib/worker/middlewares/docker_start_container_spec.rb