From 06dcd55f57031a271259dd291fe560646db85d8c Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Thu, 9 Jul 2015 16:59:17 -0600 Subject: [PATCH] Fix tests --- .../provisioners/chef/config/base_runner_test.rb | 12 ++++++------ .../provisioners/chef/config/chef_client_test.rb | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/test/unit/plugins/provisioners/chef/config/base_runner_test.rb b/test/unit/plugins/provisioners/chef/config/base_runner_test.rb index 3ef7e2fab..8bc6c6402 100644 --- a/test/unit/plugins/provisioners/chef/config/base_runner_test.rb +++ b/test/unit/plugins/provisioners/chef/config/base_runner_test.rb @@ -121,23 +121,23 @@ describe VagrantPlugins::Chef::Config::BaseRunner do end describe "#provisioning_path" do - it "defaults to a tmp_path" do + it "defaults to nil" do subject.finalize! - expect(subject.provisioning_path).to eq("/tmp/vagrant-chef") + expect(subject.provisioning_path).to be(nil) end end describe "#file_backup_path" do - it "defaults to /var/chef/backup" do + it "defaults to nil" do subject.finalize! - expect(subject.file_backup_path).to eq("/var/chef/backup") + expect(subject.file_backup_path).to be(nil) end end describe "#file_cache_path" do - it "defaults to /var/chef/cache" do + it "defaults to nil" do subject.finalize! - expect(subject.file_cache_path).to eq("/var/chef/cache") + expect(subject.file_cache_path).to be(nil) end end diff --git a/test/unit/plugins/provisioners/chef/config/chef_client_test.rb b/test/unit/plugins/provisioners/chef/config/chef_client_test.rb index 17f2dc321..25034d019 100644 --- a/test/unit/plugins/provisioners/chef/config/chef_client_test.rb +++ b/test/unit/plugins/provisioners/chef/config/chef_client_test.rb @@ -17,9 +17,9 @@ describe VagrantPlugins::Chef::Config::ChefClient do end describe "#client_key_path" do - it "defaults to /etc/chef/client.pem" do + it "defaults to nil" do subject.finalize! - expect(subject.client_key_path).to eq("/etc/chef/client.pem") + expect(subject.client_key_path).to be(nil) end end