spec/hibachi/chef_runner_spec.rb in hibachi-0.0.1.pre vs spec/hibachi/chef_runner_spec.rb in hibachi-0.0.1
- old
+ new
@@ -11,15 +11,15 @@
before do
subject.class_eval { include Hibachi::ChefRunner }
end
it "runs chef" do
- subject.stub(:run) { true }
+ allow(subject).to receive(:run).and_return true
expect(subject.run_chef(:pro)).to eq(true)
end
it "runs chef in the background" do
- subject.stub(:run_chef_in_bg) { true }
+ allow(subject).to receive(:run_chef_in_bg).and_return true
expect(subject.run_chef(:pro, background: true)).to eq(true)
end
end
end