summaryrefslogtreecommitdiff
path: root/chef-config/spec/unit/path_helper_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'chef-config/spec/unit/path_helper_spec.rb')
-rw-r--r--chef-config/spec/unit/path_helper_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/chef-config/spec/unit/path_helper_spec.rb b/chef-config/spec/unit/path_helper_spec.rb
index 399b3dc965..303fb2e91d 100644
--- a/chef-config/spec/unit/path_helper_spec.rb
+++ b/chef-config/spec/unit/path_helper_spec.rb
@@ -1,6 +1,6 @@
#
# Author:: Bryan McLellan <btm@loftninjas.org>
-# Copyright:: Copyright 2014-2016, Chef Software, Inc.
+# Copyright:: Copyright 2014-2018, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -58,7 +58,7 @@ RSpec.describe ChefConfig::PathHelper do
context "on windows" do
before(:each) do
- allow(ChefConfig).to receive(:windows?).and_return(true)
+ allow(ChefHelpers).to receive(:windows?).and_return(true)
end
include_examples("common_functionality")
@@ -106,7 +106,7 @@ RSpec.describe ChefConfig::PathHelper do
context "on unix" do
before(:each) do
- allow(ChefConfig).to receive(:windows?).and_return(false)
+ allow(ChefHelpers).to receive(:windows?).and_return(false)
end
include_examples("common_functionality")
@@ -144,7 +144,7 @@ RSpec.describe ChefConfig::PathHelper do
context "on windows" do
before(:each) do
# pass by default
- allow(ChefConfig).to receive(:windows?).and_return(true)
+ allow(ChefHelpers).to receive(:windows?).and_return(true)
allow(path_helper).to receive(:printable?).and_return(true)
allow(path_helper).to receive(:windows_max_length_exceeded?).and_return(false)
end
@@ -254,7 +254,7 @@ RSpec.describe ChefConfig::PathHelper do
context "when given more than one argument" do
it "joins, cleanpaths, and escapes characters reserved by glob" do
args = ["this/*path", "[needs]", "escaping?"]
- escaped_path = if ChefConfig.windows?
+ escaped_path = if ChefHelpers.windows?
"this\\\\\\*path\\\\\\[needs\\]\\\\escaping\\?"
else
"this/\\*path/\\[needs\\]/escaping\\?"
@@ -286,7 +286,7 @@ RSpec.describe ChefConfig::PathHelper do
describe "all_homes" do
before do
stub_const("ENV", env)
- allow(ChefConfig).to receive(:windows?).and_return(is_windows)
+ allow(ChefHelpers).to receive(:windows?).and_return(is_windows)
end
context "on windows" do