spec/lib/worker/docker_spec.rb in evrone-ci-worker-0.2.0.pre27 vs spec/lib/worker/docker_spec.rb in evrone-ci-worker-0.2.0.pre28

- old
+ new

@@ -1,20 +1,19 @@ require 'spec_helper' -require 'pathname' -require 'fileutils' -describe Evrone::CI::Worker::Docker do +describe Evrone::CI::Worker::Docker, docker: true do let(:options) { { } } let(:job) { create :job, options } - let(:path) { '/tmp/.ci' } - let(:local) { described_class.new job, path } + let(:local) { described_class.new job, nil } subject { local } - after { FileUtils.rm_rf path } - - context "perform", run_docker: true do + context "perform" do subject { local.perform } it { should eq 0 } + + before do + Evrone::CI::Worker.config.run = "docker" + end context "when fail before_script" do let(:options) { { before_script: "false" } } it { should eq(-1) } end