Sha256: 6ddc0b233c4060170fbbb37c41351bdf36c6dc3d52ff70f27f6aedac987c7252
Contents?: true
Size: 582 Bytes
Versions: 1
Compression:
Stored size: 582 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 subject.stub(:run) { true } expect(subject.run_chef(:pro)).to eq(true) end it "runs chef in the background" do subject.stub(:run_chef_in_bg) { 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.pre | spec/hibachi/chef_runner_spec.rb |