diff options
author | sersut <serdar@opscode.com> | 2013-10-21 15:15:00 -0700 |
---|---|---|
committer | sersut <serdar@opscode.com> | 2013-10-21 15:15:00 -0700 |
commit | 01ca1516da364288550ecf2c486a785096eec1aa (patch) | |
tree | a958abefe180a43eb382ae7d2cee7920bf9029a4 /spec/unit/config_spec.rb | |
parent | 56060b747e9ec3551b0a1226518c3e9d6635bd7c (diff) | |
download | chef-01ca1516da364288550ecf2c486a785096eec1aa.tar.gz |
Default value for ssl_ca_file should be nil only on UNIX.
Diffstat (limited to 'spec/unit/config_spec.rb')
-rw-r--r-- | spec/unit/config_spec.rb | 10 |
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 |