##// END OF EJS Templates
scm: filesystem: update test repository for non ascii text files displaying (#6256)....
Toshi MARUYAMA -
r5083:0597adfe5313
parent child
Show More
1 NO CONTENT: modified file, binary diff hidden
@@ -11,16 +11,16 class FilesystemAdapterTest < ActiveSupport::TestCase
11 11 end
12 12
13 13 def test_entries
14 assert_equal 2, @adapter.entries.size
15 assert_equal ["dir", "test"], @adapter.entries.collect(&:name)
16 assert_equal ["dir", "test"], @adapter.entries(nil).collect(&:name)
17 assert_equal ["dir", "test"], @adapter.entries("/").collect(&:name)
14 assert_equal 3, @adapter.entries.size
15 assert_equal ["dir", "japanese", "test"], @adapter.entries.collect(&:name)
16 assert_equal ["dir", "japanese", "test"], @adapter.entries(nil).collect(&:name)
17 assert_equal ["dir", "japanese", "test"], @adapter.entries("/").collect(&:name)
18 18 ["dir", "/dir", "/dir/", "dir/"].each do |path|
19 19 assert_equal ["subdir", "dirfile"], @adapter.entries(path).collect(&:name)
20 20 end
21 21 # If y try to use "..", the path is ignored
22 22 ["/../","dir/../", "..", "../", "/..", "dir/.."].each do |path|
23 assert_equal ["dir", "test"], @adapter.entries(path).collect(&:name),
23 assert_equal ["dir", "japanese", "test"], @adapter.entries(path).collect(&:name),
24 24 ".. must be ignored in path argument"
25 25 end
26 26 end
@@ -40,7 +40,7 class RepositoryFilesystemTest < ActiveSupport::TestCase
40 40 end
41 41
42 42 def test_entries
43 assert_equal 2, @repository.entries("", 2).size
43 assert_equal 3, @repository.entries("", 2).size
44 44 assert_equal 2, @repository.entries("dir", 3).size
45 45 end
46 46
General Comments 0
You need to be logged in to leave comments. Login now