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/platform | |
| parent | 1428270b0f2d0f2ae5d62ecb2aa512ffa7ac773e (diff) | |
| download | chef-68d6b10124b96012594d0a4fbe099eda738111b3.tar.gz | |
Stub `windows?` on ChefConfig so it applies to config
Diffstat (limited to 'spec/unit/platform')
| -rw-r--r-- | spec/unit/platform/query_helpers_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/platform/query_helpers_spec.rb b/spec/unit/platform/query_helpers_spec.rb index 1dbd07a021..33d4c2c3b7 100644 --- a/spec/unit/platform/query_helpers_spec.rb +++ b/spec/unit/platform/query_helpers_spec.rb @@ -20,7 +20,7 @@ require 'spec_helper' describe "Chef::Platform#windows_server_2003?" do it "returns false early when not on windows" do - allow(Chef::Platform).to receive(:windows?).and_return(false) + allow(ChefConfig).to receive(:windows?).and_return(false) expect(Chef::Platform).not_to receive(:require) expect(Chef::Platform.windows_server_2003?).to be_falsey end |
