From 68d6b10124b96012594d0a4fbe099eda738111b3 Mon Sep 17 00:00:00 2001 From: danielsdeleo Date: Wed, 13 May 2015 19:20:32 -0700 Subject: Stub `windows?` on ChefConfig so it applies to config --- spec/unit/data_bag_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/unit/data_bag_spec.rb') diff --git a/spec/unit/data_bag_spec.rb b/spec/unit/data_bag_spec.rb index f6db1e222a..bd9a99a1de 100644 --- a/spec/unit/data_bag_spec.rb +++ b/spec/unit/data_bag_spec.rb @@ -22,7 +22,7 @@ require 'chef/data_bag' describe Chef::DataBag do before(:each) do @data_bag = Chef::DataBag.new - allow(Chef::Platform)::to receive(:windows?) { false } + allow(ChefConfig).to receive(:windows?) { false } end describe "initialize" do -- cgit v1.2.1