summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan McLellan <btm@opscode.com>2012-02-09 12:08:00 -0800
committerBryan McLellan <btm@opscode.com>2012-02-09 12:08:00 -0800
commit8d0037418b969cc473a48a8d97faa7f9a4ab2b40 (patch)
treeb339f247963e5fc187b5fb9088f8ef53eb786f70
parente535ebe5f48a6b084857810d1cf943d153088736 (diff)
downloadchef-8d0037418b969cc473a48a8d97faa7f9a4ab2b40.tar.gz
CHEF-2860: Fix default data_bag path test on windows so schisamo will still be my friend
-rw-r--r--chef/spec/unit/config_spec.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/chef/spec/unit/config_spec.rb b/chef/spec/unit/config_spec.rb
index 0d42ed6323..60f7eb2f2b 100644
--- a/chef/spec/unit/config_spec.rb
+++ b/chef/spec/unit/config_spec.rb
@@ -161,7 +161,13 @@ describe Chef::Config do
end
it "Chef::Config[:data_bag_path] defaults to /var/chef/data_bags" do
- Chef::Config[:data_bag_path].should == "/var/chef/data_bags"
+ data_bag_path = if windows?
+ "C:\\chef\\data_bags"
+ else
+ "/var/chef/data_bags"
+ end
+
+ Chef::Config[:data_bag_path].should == data_bag_path
end
end
end