From a61c9d53eb9c3e64c5aee4d43698779aca1af9d3 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 15 Dec 2011 12:18:20 +0000 Subject: [PATCH] Set locale in test. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8232 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/group_test.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/unit/group_test.rb b/test/unit/group_test.rb index 2aecc578a..0bb55714c 100644 --- a/test/unit/group_test.rb +++ b/test/unit/group_test.rb @@ -34,6 +34,8 @@ class GroupTest < ActiveSupport::TestCase end def test_blank_name_error_message + I18n.locale = :en + g = Group.new assert !g.save assert_include "Name can't be blank", g.errors.full_messages