We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2be0b84 commit 8b0aac2Copy full SHA for 8b0aac2
spec/lib/rex/file_utils_spec.rb
@@ -45,6 +45,10 @@
45
described_class.normalize_unix_path('/etc/passwd').should eq('/etc/passwd')
46
end
47
48
+ it "should still give me a trailing slash if I have it" do
49
+ described_class.normalize_unix_path('/etc/folder/').should eq("/etc/folder/")
50
+ end
51
+
52
it "should convert a path without double slashes" do
53
described_class.normalize_unix_path('//etc////passwd').should eq("/etc/passwd")
54
described_class.normalize_unix_path('/etc////', 'passwd').should eq('/etc/passwd')
0 commit comments