Set locale in test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8232 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
4f5e7d678e
commit
a61c9d53eb
|
@ -34,6 +34,8 @@ class GroupTest < ActiveSupport::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_blank_name_error_message
|
def test_blank_name_error_message
|
||||||
|
I18n.locale = :en
|
||||||
|
|
||||||
g = Group.new
|
g = Group.new
|
||||||
assert !g.save
|
assert !g.save
|
||||||
assert_include "Name can't be blank", g.errors.full_messages
|
assert_include "Name can't be blank", g.errors.full_messages
|
||||||
|
|
Loading…
Reference in New Issue