summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorsersut <serdar@opscode.com>2013-10-21 16:14:28 -0700
committersersut <serdar@opscode.com>2013-10-21 16:14:28 -0700
commit7ef1019839b03c182aed3215675c2f1169174677 (patch)
tree996d1f28e343518c324dbc2d7068debf8043fb97 /spec
parent4924d9133801c2b6e6b25312171b06b61668f192 (diff)
parent5743710e8c2d1a96bcf20657cf88e8f0c96fccdb (diff)
downloadchef-7ef1019839b03c182aed3215675c2f1169174677.tar.gz
Merge branch '11-stable' of github.com:opscode/chef into 11-stable
Diffstat (limited to 'spec')
-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