From 0597adfe531304229b16dc1e46cdb6dd32ccf17f Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 22 Mar 2011 15:30:19 +0000 Subject: [PATCH] scm: filesystem: update test repository for non ascii text files displaying (#6256). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5203 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .../repositories/filesystem_repository.tar.gz | Bin 265 -> 438 bytes .../scm/adapters/filesystem_adapter_test.rb | 10 +++++----- test/unit/repository_filesystem_test.rb | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/fixtures/repositories/filesystem_repository.tar.gz b/test/fixtures/repositories/filesystem_repository.tar.gz index 7e8a4ac56a63c90171110e9433a8762bcc7c136b..8da89339a2dbb21618732fe521724e43a231cac1 100644 GIT binary patch literal 438 zcmV;n0ZINJiwFRdt%ywm1MQhlPQpMGhu^x1cjy5u%uMIc+7Mj0GO?^p(SejGZQ5xf zSMU&?!xOmi3U1wb1f$MWjM0RGp%e-4OQxOBxBL2gFpo}mlw9dzRv3MKp6e_v5|ie$ zE;IW4%xH(>+&L)WSh-DQ$PDZBa{)$e;f1%z2M~3`_k<_ygokNzhKTW z|MUD0lX2im*609B@?V|#=I4JYDR=qjB*gr;fz|6*di~m+hjmzoby)Y;IuCzJ?Bw_V zWs*1cAHZt!f6j$eoC$aS7gQ0P|7_d8UG8Bc{%hy|mH%q~&+Wy{|G2{Q-`4#X<*<=9 guv-4-{^_Ux5c7{92!bF8f*_6a0j~gorT{1a0BSVn)&Kwi literal 265 zcmb2|=HO^%_4Ht1PRq}^IzA0+Yb#*tDB`V6EQEDEZn|faF$mPkN>o0vSa_+XL+utucS07?GWB>U% z{pIfR8v?Uz>KBFo^J@EJ%6WK4$Mr)y?9ba<&J(J;p+0-7bYm#b`Ttupl>RZNy{Q+C z`}=QuSkiy}M4SH~zO)Ozn{nsA{Lk638aMuPOPs&Ib-G7(!nHq_mFqJ(KJzmm1B2tT MmP_Io88jFe02tJEzyJUM diff --git a/test/unit/lib/redmine/scm/adapters/filesystem_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/filesystem_adapter_test.rb index e4722ff5a..74502cf54 100644 --- a/test/unit/lib/redmine/scm/adapters/filesystem_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/filesystem_adapter_test.rb @@ -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 diff --git a/test/unit/repository_filesystem_test.rb b/test/unit/repository_filesystem_test.rb index 3347d5913..e1287d282 100644 --- a/test/unit/repository_filesystem_test.rb +++ b/test/unit/repository_filesystem_test.rb @@ -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 -- 2.39.5