summaryrefslogtreecommitdiffstats
path: root/test/unit/group_test.rb
diff options
context:
space:
mode:
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