Sha256: 3c4d3034966fc3853a40f7a0c4b73d2a4a96f3a121415b72dc9dd053395def0c
Contents?: true
Size: 809 Bytes
Versions: 27
Compression:
Stored size: 809 Bytes
Contents
require 'spec_helper' describe Evrone::CI::Worker do context ".perform" do let(:job) { create :job } let(:run) { :docker } subject { described_class.perform job, '/tmp' } before do described_class.configure do |c| c.run = run end end context "when run at :docker" do let(:run) { :docker } let(:docker) { 'docker' } before do mock(Evrone::CI::Worker::Docker).new(job, '/tmp') { docker } mock(docker).perform { true } end it { should be } end context "when run at :local" do let(:run) { :local } let(:local) { 'local' } before do mock(Evrone::CI::Worker::Local).new(job, '/tmp') { local } mock(local).perform { true } end it { should be } end end end
Version data entries
27 entries across 27 versions & 1 rubygems