Browse Source

add unit query test of French label

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10254 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/2.1.0
Toshi MARUYAMA 11 years ago
parent
commit
53dd8dc11a
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      test/unit/query_test.rb

+ 8
- 0
test/unit/query_test.rb View File

@@ -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)

Loading…
Cancel
Save