We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf0dbcd commit cd889d7Copy full SHA for cd889d7
spec/host_spec.rb
@@ -58,4 +58,17 @@ def with_tmpdir(path)
58
end
59
60
61
+ context "path mangling" do
62
+ win_path = "D:\\a\\_temp\\d20221224-4508-11w7f4\\foo.yml"
63
+ posix_pathname = Pathname.new("D:/a/_temp/d20221224-4508-11w7f4/foo.yml")
64
+
65
+ it "converts windows paths to pathnames" do
66
+ expect(ArduinoCI::Host.pathname_to_windows(posix_pathname)).to eq(win_path)
67
+ end
68
69
+ it "converts pathnames to windows paths" do
70
+ expect(ArduinoCI::Host.windows_to_pathname(win_path)).to eq(posix_pathname)
71
72
73
74
0 commit comments