diff options
author | Serdar Sutay <serdar@opscode.com> | 2014-12-11 16:03:42 -0800 |
---|---|---|
committer | Serdar Sutay <serdar@opscode.com> | 2014-12-11 16:03:42 -0800 |
commit | 398a7b71bd07b1eab8f0abfe9035354dbb18b3bb (patch) | |
tree | 6cfd5f2faa9d1bd275be45466cb1156e00668c0d | |
parent | 75014959f96d15e859e0a9f56556093238af9a90 (diff) | |
download | chef-sersut/chef-2580.tar.gz |
Fix the busted path_helper_spec tests.sersut/chef-2580
-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 |