summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-09-01 02:37:20 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-09-01 02:37:20 +0000
commit53dd8dc11a9024fc874dc945c8248e679b6a3d31 (patch)
tree5ca688031b1777698b68b8f7cfd0b7491c8561ef /test
parent444987ce91a02a940d48385dfbad834957fed484 (diff)
downloadredmine-53dd8dc11a9024fc874dc945c8248e679b6a3d31.tar.gz
redmine-53dd8dc11a9024fc874dc945c8248e679b6a3d31.zip
add unit query test of French label
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10254 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/query_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/unit/query_test.rb b/test/unit/query_test.rb
index 4f28f6f84..5f639a84f 100644
--- a/test/unit/query_test.rb
+++ b/test/unit/query_test.rb
@@ -863,6 +863,14 @@ class QueryTest < ActiveSupport::TestCase
assert_equal 'Assignee', q.label_for('assigned_to_id')
end
+ def test_label_for_fr
+ set_language_if_valid 'fr'
+ q = Query.new
+ s = "Assign\xc3\xa9 \xc3\xa0"
+ s.force_encoding('UTF-8') if s.respond_to?(:force_encoding)
+ assert_equal s, q.label_for('assigned_to_id')
+ end
+
def test_editable_by
admin = User.find(1)
manager = User.find(2)