summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsersut <serdar@opscode.com>2013-10-21 15:15:00 -0700
committersersut <serdar@opscode.com>2013-10-21 15:15:00 -0700
commit01ca1516da364288550ecf2c486a785096eec1aa (patch)
treea958abefe180a43eb382ae7d2cee7920bf9029a4
parent56060b747e9ec3551b0a1226518c3e9d6635bd7c (diff)
downloadchef-01ca1516da364288550ecf2c486a785096eec1aa.tar.gz
Default value for ssl_ca_file should be nil only on UNIX.
-rw-r--r--spec/unit/config_spec.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/spec/unit/config_spec.rb b/spec/unit/config_spec.rb
index 3771b853a1..0a246037fb 100644
--- a/spec/unit/config_spec.rb
+++ b/spec/unit/config_spec.rb
@@ -183,8 +183,14 @@ describe Chef::Config do
Chef::Config[:ssl_ca_path].should be_nil
end
- it "Chef::Config[:ssl_ca_file] defaults to nil" do
- Chef::Config[:ssl_ca_file].should be_nil
+ describe "when on UNIX" do
+ before do
+ Chef::Config.stub(:on_windows?).and_return(false)
+ end
+
+ it "Chef::Config[:ssl_ca_file] defaults to nil" do
+ Chef::Config[:ssl_ca_file].should be_nil
+ end
end
it "Chef::Config[:data_bag_path] defaults to /var/chef/data_bags" do