Skip to content

Commit 3152e70

Browse files
committed
Add failing test for directories with plusses.
1 parent 98e108b commit 3152e70

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/fakefs_test.rb

+7
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,13 @@ def test_knows_symlink_directories_are_directories
101101
assert File.directory?(sympath)
102102
end
103103

104+
def test_knows_directories_with_plusses_are_directories
105+
plus_path = "/path/plus/one\+two/something"
106+
FileUtils.mkdir_p(plus_path)
107+
assert File.directory?(plus_path)
108+
exit
109+
end
110+
104111
def test_knows_non_existent_directories_arent_directories
105112
path = 'does/not/exist/'
106113
assert_equal RealFile.directory?(path), File.directory?(path)

0 commit comments

Comments
 (0)