Sha256: c70bc0cab74a6f1334c8990deecfb55352b00a8e1d68055747a2aa82211fb322

Contents?: true

Size: 622 Bytes

Versions: 1

Compression:

Stored size: 622 Bytes

Contents

require 'spec_helper'
require 'hibachi/chef_runner'

module Hibachi
  describe ChefRunner do
    subject do
      double 'Hibachi', \
        config: Hibachi.config,
        recipe_name: 'recipe[pro::default]'
    end
    before do
      subject.class_eval { include Hibachi::ChefRunner }
    end

    it "runs chef" do
      allow(subject).to receive(:run).and_return true
      expect(subject.run_chef(:pro)).to eq(true)
    end

    it "runs chef in the background" do
      allow(subject).to receive(:run_chef_in_bg).and_return true
      expect(subject.run_chef(:pro, background: true)).to eq(true)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hibachi-0.0.1 spec/hibachi/chef_runner_spec.rb