Fix tests

This commit is contained in:
Seth Vargo 2015-11-18 18:32:46 -08:00
parent f999218c53
commit a0c049da00
1 changed files with 0 additions and 36 deletions

View File

@ -96,41 +96,5 @@ describe VagrantPlugins::Chef::Config::ChefClient do
expect(errors).to eq([I18n.t("vagrant.config.chef.validation_key_path")])
end
end
context "when #delete_client is given" do
before { subject.delete_client = true }
context "when knife does not exist" do
before do
allow(Vagrant::Util::Which)
.to receive(:which)
.with("knife")
.and_return(nil)
end
it "returns an error" do
subject.finalize!
expect(errors).to eq([I18n.t("vagrant.chef_config_knife_not_found")])
end
end
end
context "when #delete_node is given" do
before { subject.delete_node = true }
context "when knife does not exist" do
before do
allow(Vagrant::Util::Which)
.to receive(:which)
.with("knife")
.and_return(nil)
end
it "returns an error" do
subject.finalize!
expect(errors).to eq([I18n.t("vagrant.chef_config_knife_not_found")])
end
end
end
end
end