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.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/chef-config/spec/unit/path_helper_spec.rb b/chef-config/spec/unit/path_helper_spec.rb
index 3e6213597a..3e2a0fd129 100644
--- a/chef-config/spec/unit/path_helper_spec.rb
+++ b/chef-config/spec/unit/path_helper_spec.rb
@@ -256,10 +256,10 @@ RSpec.describe ChefConfig::PathHelper do
it "joins, cleanpaths, and escapes characters reserved by glob" do
args = ["this/*path", "[needs]", "escaping?"]
escaped_path = if ChefConfig.windows?
- "this\\\\\\*path\\\\\\[needs\\]\\\\escaping\\?"
- else
- "this/\\*path/\\[needs\\]/escaping\\?"
- end
+ "this\\\\\\*path\\\\\\[needs\\]\\\\escaping\\?"
+ else
+ "this/\\*path/\\[needs\\]/escaping\\?"
+ end
expect(path_helper).to receive(:join).with(*args).and_call_original
expect(path_helper).to receive(:cleanpath).and_call_original
expect(path_helper.escape_glob(*args)).to eq(escaped_path)