diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2016-02-16 10:45:14 -0800 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2016-02-16 19:07:55 -0800 |
commit | 2bfb3d37acdd9a71c17cd3ac28fed5e9e53de4ee (patch) | |
tree | 0dfff252125945549914cb6bbd6ee23af14d6933 | |
parent | 8417850f5b3bba689694a4114502034600a44602 (diff) | |
download | chef-2bfb3d37acdd9a71c17cd3ac28fed5e9e53de4ee.tar.gz |
Fix spec for escape_glob_dir
This was testing `escape_glob` behavior.
Probably a copy-pasta mistake
-rw-r--r-- | chef-config/spec/unit/path_helper_spec.rb | 8 |
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 9cdc7a6d9c..399b3dc965 100644 --- a/chef-config/spec/unit/path_helper_spec.rb +++ b/chef-config/spec/unit/path_helper_spec.rb @@ -267,9 +267,9 @@ RSpec.describe ChefConfig::PathHelper do end describe "escape_glob_dir" do - it "escapes characters reserved by glob" do - path = "C:\\this\\*path\\[needs]\\escaping?" - escaped_path = "C:\\\\this\\\\\\*path\\\\\\[needs\\]\\\\escaping\\?" + it "escapes characters reserved by glob without using backslashes for path separators" do + path = "C:/this/*path/[needs]/escaping?" + escaped_path = "C:/this/\\*path/\\[needs\\]/escaping\\?" expect(path_helper.escape_glob_dir(path)).to eq(escaped_path) end @@ -281,7 +281,7 @@ RSpec.describe ChefConfig::PathHelper do expect(path_helper.escape_glob_dir(*args)).to eq(escaped_path) end end - end + end describe "all_homes" do before do |