mirror of
https://github.com/redmine/redmine.git
synced 2025-11-07 22:05:56 +01:00
Raises 60-character limit for document titles to 255 (#12312).
git-svn-id: http://svn.redmine.org/redmine/trunk@14261 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -28,6 +28,13 @@ class DocumentTest < ActiveSupport::TestCase
|
||||
assert doc.save
|
||||
end
|
||||
|
||||
def test_create_with_long_title
|
||||
title = 'x'*255
|
||||
doc = Document.new(:project => Project.find(1), :title => title, :category => DocumentCategory.first)
|
||||
assert_save doc
|
||||
assert_equal title, doc.reload.title
|
||||
end
|
||||
|
||||
def test_create_should_send_email_notification
|
||||
ActionMailer::Base.deliveries.clear
|
||||
|
||||
|
||||
Reference in New Issue
Block a user