From 2641f8ba912ce6016fd329c8fa724289a8e8dae7 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 28 Feb 2014 13:16:46 +0000 Subject: Changeset comments set to longtext for handling comments > 64KB with Mysql (#16143). git-svn-id: http://svn.redmine.org/redmine/trunk@12944 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/changeset_test.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test') diff --git a/test/unit/changeset_test.rb b/test/unit/changeset_test.rb index 9a11eeab4..5ee508083 100644 --- a/test/unit/changeset_test.rb +++ b/test/unit/changeset_test.rb @@ -536,6 +536,17 @@ class ChangesetTest < ActiveSupport::TestCase end end + def test_comments_should_accept_more_than_64k + c = Changeset.new(:repository => Repository.first, + :committed_on => Time.now, + :revision => '123', + :scmid => '12345', + :comments => "a" * 500.kilobyte) + assert c.save + c.reload + assert_equal 500.kilobyte, c.comments.size + end + def test_identifier c = Changeset.find_by_revision('1') assert_equal c.revision, c.identifier -- cgit v1.2.3