Commit eff75109 authored by tmaruyama's avatar tmaruyama

use set_language_if_valid instead of I18n.locale at unit group test (#9795)

git-svn-id: https://svn.redmine.org/redmine/trunk@8235 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent edebcb6f
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment