Sha256: e8a2392247030a0240063f57f9dce9ec92daf58d6f6100d4b7853a3426e21e43

Contents?: true

Size: 510 Bytes

Versions: 1

Compression:

Stored size: 510 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 eq "/home/ci/evrone/test-repo"
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
evrone-ci-worker-0.2.0.pre0 spec/lib/worker/middlewares/docker_start_container_spec.rb