]> source.dussan.org Git - redmine.git/commitdiff
scm: filesystem: update test repository for non ascii text files displaying (#6256).
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 22 Mar 2011 15:30:19 +0000 (15:30 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 22 Mar 2011 15:30:19 +0000 (15:30 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5203 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/fixtures/repositories/filesystem_repository.tar.gz
test/unit/lib/redmine/scm/adapters/filesystem_adapter_test.rb
test/unit/repository_filesystem_test.rb

index 7e8a4ac56a63c90171110e9433a8762bcc7c136b..8da89339a2dbb21618732fe521724e43a231cac1 100644 (file)
Binary files a/test/fixtures/repositories/filesystem_repository.tar.gz and b/test/fixtures/repositories/filesystem_repository.tar.gz differ
index e4722ff5a9ed6563e4ceeb8b30cb8162d5491543..74502cf5458ba9a3ee3d3ea11ac6520654707f54 100644 (file)
@@ -11,16 +11,16 @@ class FilesystemAdapterTest < ActiveSupport::TestCase
     end
 
     def test_entries
-      assert_equal 2, @adapter.entries.size
-      assert_equal ["dir", "test"], @adapter.entries.collect(&:name)
-      assert_equal ["dir", "test"], @adapter.entries(nil).collect(&:name)
-      assert_equal ["dir", "test"], @adapter.entries("/").collect(&:name)
+      assert_equal 3, @adapter.entries.size
+      assert_equal ["dir", "japanese", "test"], @adapter.entries.collect(&:name)
+      assert_equal ["dir", "japanese", "test"], @adapter.entries(nil).collect(&:name)
+      assert_equal ["dir", "japanese", "test"], @adapter.entries("/").collect(&:name)
       ["dir", "/dir", "/dir/", "dir/"].each do |path|
         assert_equal ["subdir", "dirfile"], @adapter.entries(path).collect(&:name)
       end
       # If y try to use "..", the path is ignored
       ["/../","dir/../", "..", "../", "/..", "dir/.."].each do |path|
-        assert_equal ["dir", "test"], @adapter.entries(path).collect(&:name),
+        assert_equal ["dir", "japanese", "test"], @adapter.entries(path).collect(&:name),
              ".. must be ignored in path argument"
       end
     end
index 3347d5913273c69b656d87a07f2fbbc259ca0fb5..e1287d282840d2c5e46745b986c39682ff5bff9e 100644 (file)
@@ -40,7 +40,7 @@ class RepositoryFilesystemTest < ActiveSupport::TestCase
     end
 
     def test_entries
-      assert_equal 2, @repository.entries("", 2).size
+      assert_equal 3, @repository.entries("", 2).size
       assert_equal 2, @repository.entries("dir", 3).size
     end