summaryrefslogtreecommitdiffstats
path: root/test/unit/helpers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-01-18 20:43:04 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-01-18 20:43:04 +0000
commitc9dd7dbe1594c3b861531823a696efe48caa4a44 (patch)
treecd700801e6613921778a864d5e04a9253c5e631c /test/unit/helpers
parenteacd619f5f0c7572dd0d10ba3cb6844b708313f2 (diff)
downloadredmine-c9dd7dbe1594c3b861531823a696efe48caa4a44.tar.gz
redmine-c9dd7dbe1594c3b861531823a696efe48caa4a44.zip
Set proper locale.
git-svn-id: http://svn.redmine.org/redmine/trunk@13912 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/helpers')
-rw-r--r--test/unit/helpers/application_helper_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb
index 5db4f9573..13a34064f 100644
--- a/test/unit/helpers/application_helper_test.rb
+++ b/test/unit/helpers/application_helper_test.rb
@@ -1371,6 +1371,7 @@ RAW
def test_principals_options_for_select_with_users_and_groups
User.current = nil
+ set_language_if_valid 'en'
users = [User.find(2), Group.find(11), User.find(4), Group.find(10)]
assert_equal %(<option value="2">John Smith</option><option value="4">Robert Hill</option>) +
%(<optgroup label="Groups"><option value="10">A Team</option><option value="11">B Team</option></optgroup>),
@@ -1382,6 +1383,7 @@ RAW
end
def test_principals_options_for_select_should_include_me_option_when_current_user_is_in_collection
+ set_language_if_valid 'en'
users = [User.find(2), User.find(4)]
User.current = User.find(4)
assert_include '<option value="4">&lt;&lt; me &gt;&gt;</option>', principals_options_for_select(users)