summaryrefslogtreecommitdiffstats
path: root/test/unit/repository_cvs_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-01-18 16:16:23 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-01-18 16:16:23 +0000
commit9915962356ce4bb218ffce55a6120a5d72eb2d08 (patch)
tree8bbdb31e29a1989deed241eb8c1ee3d91eeb7a58 /test/unit/repository_cvs_test.rb
parent6cc1f2be5439c177583c2c45ae7aebdc8d056895 (diff)
downloadredmine-9915962356ce4bb218ffce55a6120a5d72eb2d08.tar.gz
redmine-9915962356ce4bb218ffce55a6120a5d72eb2d08.zip
Make sure that #scm_iconv returns a string with the target encoding (#14534).
filechanges.find_by_revision_and_path fails with SQLite if arguments are not UTF-8 encoded. git-svn-id: http://svn.redmine.org/redmine/trunk@13902 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/repository_cvs_test.rb')
-rw-r--r--test/unit/repository_cvs_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/unit/repository_cvs_test.rb b/test/unit/repository_cvs_test.rb
index fc5bbb8a1..04d086306 100644
--- a/test/unit/repository_cvs_test.rb
+++ b/test/unit/repository_cvs_test.rb
@@ -179,6 +179,7 @@ class RepositoryCvsTest < ActiveSupport::TestCase
assert_kind_of Redmine::Scm::Adapters::Entries, entries
assert_equal 3, entries.size
assert_equal entries[2].name, "README"
+ assert_equal 'UTF-8', entries[2].path.encoding.to_s
assert_equal entries[2].lastrev.time, Time.gm(2007, 12, 13, 16, 27, 22)
assert_equal entries[2].lastrev.identifier, '3'
assert_equal entries[2].lastrev.revision, '3'