summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2015-11-05 12:20:03 -0800
committerJay Mundrawala <jdmundrawala@gmail.com>2015-11-05 12:20:03 -0800
commit6af4905131979f5b051ace0e3850ab555e964080 (patch)
tree734b0fb187e532e6f6bc2af9b026b0e9ce48f21a
parente9e70d503a92ddeed6881e02463d39036648edd9 (diff)
downloadchef-6af4905131979f5b051ace0e3850ab555e964080.tar.gz
Fixed knife_spec unit test
This is failing on both my and btm's machine. No idea how it passes in other places.
-rw-r--r--spec/unit/knife_spec.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/unit/knife_spec.rb b/spec/unit/knife_spec.rb
index 9e76ec59c4..9ccd91775f 100644
--- a/spec/unit/knife_spec.rb
+++ b/spec/unit/knife_spec.rb
@@ -33,7 +33,10 @@ describe Chef::Knife do
let(:config_location) { File.expand_path("~/.chef/config.rb") }
let(:config_loader) do
- instance_double("WorkstationConfigLoader", load: nil, no_config_found?: false, config_location: config_location)
+ instance_double("WorkstationConfigLoader",
+ load: nil, no_config_found?: false,
+ config_location: config_location,
+ :chef_config_dir => "/etc/chef")
end
before(:each) do