Sha256: 8c001539d655e4971c1592f8e9aa4b2e01c1ce0f60a5880f2642614ff28f2dc9
Contents?: true
Size: 692 Bytes
Versions: 22
Compression:
Stored size: 692 Bytes
Contents
require 'spec_helper' require 'pathname' require 'fileutils' describe Evrone::CI::Worker::LocalCreateDirs do let(:app) { ->(_) { 0 } } let(:job) { create :job } let(:path_prefix) { Pathname.new '/tmp/.ci' } let(:env) { OpenStruct.new job: job, path_prefix: path_prefix } let(:mid) { described_class.new app } subject { mid.call env } after do FileUtils.rm_rf path_prefix end it { should eq 0 } context "create and assign directories" do before do subject end it "tmp_dir" do expect(env.tmp_dir.to_s).to eq '/tmp/.ci/tmp/evrone/test-repo' expect(File.directory? env.tmp_dir).to be end end end
Version data entries
22 entries across 22 versions & 1 rubygems