diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-15 13:06:00 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-15 13:06:00 +0000 |
commit | 2e6b13a5e95344cb6140e1ef10eba0e87a58c0fd (patch) | |
tree | 55692b5af99f943570886f757ecc26fd6c9f9363 /test/unit | |
parent | b99c2f4deefa9ffa20dd54a7952c3e6c36c7891e (diff) | |
download | redmine-2e6b13a5e95344cb6140e1ef10eba0e87a58c0fd.tar.gz redmine-2e6b13a5e95344cb6140e1ef10eba0e87a58c0fd.zip |
use set_language_if_valid instead of I18n.locale at unit group test (#9795)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8235 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/group_test.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/unit/group_test.rb b/test/unit/group_test.rb index 0bb55714c..91c7da19a 100644 --- a/test/unit/group_test.rb +++ b/test/unit/group_test.rb @@ -28,14 +28,15 @@ class GroupTest < ActiveSupport::TestCase :workflows, :groups_users + include Redmine::I18n + def test_create g = Group.new(:lastname => 'New group') assert g.save end def test_blank_name_error_message - I18n.locale = :en - + set_language_if_valid 'en' g = Group.new assert !g.save assert_include "Name can't be blank", g.errors.full_messages |