diff options
-rw-r--r-- | chef-config/spec/unit/path_helper_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chef-config/spec/unit/path_helper_spec.rb b/chef-config/spec/unit/path_helper_spec.rb index aa670577d4..f416bb1826 100644 --- a/chef-config/spec/unit/path_helper_spec.rb +++ b/chef-config/spec/unit/path_helper_spec.rb @@ -55,7 +55,7 @@ RSpec.describe ChefConfig::PathHelper do end end - context "on windows" do + context "on windows", :windows_only do before(:each) do allow(ChefUtils).to receive(:windows?).and_return(true) @@ -103,7 +103,7 @@ RSpec.describe ChefConfig::PathHelper do end - context "on unix" do + context "on unix", :unix_only do before(:each) do allow(ChefUtils).to receive(:windows?).and_return(false) |