summaryrefslogtreecommitdiffstats
path: root/test/unit/group_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-02-15 07:48:37 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-02-15 07:48:37 +0000
commitee1d9647b86f9e886cea07abe6e4e4126352a018 (patch)
tree42463aa055c9f767f66832729d90d73920cfe29b /test/unit/group_test.rb
parent5891a873fbf5fe934c1d5fef2d4c763c604d4c32 (diff)
downloadredmine-ee1d9647b86f9e886cea07abe6e4e4126352a018.tar.gz
redmine-ee1d9647b86f9e886cea07abe6e4e4126352a018.zip
Raised group name maximum length to 255 characters (#13174).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11392 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/group_test.rb')
-rw-r--r--test/unit/group_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/unit/group_test.rb b/test/unit/group_test.rb
index c04583ae6..53f1603e2 100644
--- a/test/unit/group_test.rb
+++ b/test/unit/group_test.rb
@@ -35,6 +35,14 @@ class GroupTest < ActiveSupport::TestCase
assert_equal 'New group', g.name
end
+ def test_name_should_accept_255_characters
+ name = 'a' * 255
+ g = Group.new(:name => name)
+ assert g.save
+ g.reload
+ assert_equal name, g.name
+ end
+
def test_blank_name_error_message
set_language_if_valid 'en'
g = Group.new