diff options
-rw-r--r-- | spec/unit/util/path_helper_spec.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/spec/unit/util/path_helper_spec.rb b/spec/unit/util/path_helper_spec.rb index 4df4b9b1ff..324396b0dd 100644 --- a/spec/unit/util/path_helper_spec.rb +++ b/spec/unit/util/path_helper_spec.rb @@ -176,15 +176,11 @@ describe Chef::Util::PathHelper do describe "canonical_path" do context "on windows", :windows_only do it "returns an absolute path with backslashes instead of slashes" do - expect(PathHelper.canonical_path("\\\\?\\C:/windows/win.ini")).to eq("\\\\?\\c:\\windows\\win.ini") + expect(PathHelper.canonical_path("\\\\?\\c:/windows/win.ini")).to eq("\\\\?\\c:\\windows\\win.ini") end it "adds the \\\\?\\ prefix if it is missing" do - expect(PathHelper.canonical_path("C:/windows/win.ini")).to eq("\\\\?\\c:\\windows\\win.ini") - end - - it "returns a lowercase path" do - expect(PathHelper.canonical_path("\\\\?\\C:\\CASE\\INSENSITIVE")).to eq("\\\\?\\c:\\case\\insensitive") + expect(PathHelper.canonical_path("c:/windows/win.ini")).to eq("\\\\?\\c:\\windows\\win.ini") end end |