diff options
author | danielsdeleo <dan@getchef.com> | 2015-05-13 19:20:32 -0700 |
---|---|---|
committer | danielsdeleo <dan@getchef.com> | 2015-05-20 15:13:57 -0700 |
commit | 68d6b10124b96012594d0a4fbe099eda738111b3 (patch) | |
tree | 3530dc61c41fb3203de925bdbd7ca798cdd246c6 /spec/unit/mixin/template_spec.rb | |
parent | 1428270b0f2d0f2ae5d62ecb2aa512ffa7ac773e (diff) | |
download | chef-68d6b10124b96012594d0a4fbe099eda738111b3.tar.gz |
Stub `windows?` on ChefConfig so it applies to config
Diffstat (limited to 'spec/unit/mixin/template_spec.rb')
-rw-r--r-- | spec/unit/mixin/template_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/mixin/template_spec.rb b/spec/unit/mixin/template_spec.rb index f02bd34b8f..6a867b5f9a 100644 --- a/spec/unit/mixin/template_spec.rb +++ b/spec/unit/mixin/template_spec.rb @@ -39,7 +39,7 @@ describe Chef::Mixin::Template, "render_template" do describe "when running on windows" do before do - allow(Chef::Platform).to receive(:windows?).and_return(true) + allow(ChefConfig).to receive(:windows?).and_return(true) end it "should render the templates with windows line endings" do @@ -54,7 +54,7 @@ describe Chef::Mixin::Template, "render_template" do describe "when running on unix" do before do - allow(Chef::Platform).to receive(:windows?).and_return(false) + allow(ChefConfig).to receive(:windows?).and_return(false) end it "should render the templates with unix line endings" do |