diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-02-28 13:16:46 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-02-28 13:16:46 +0000 |
commit | 2641f8ba912ce6016fd329c8fa724289a8e8dae7 (patch) | |
tree | bc7f77b4d48ebcf84ae1cc72463004f7d6fe2989 /test | |
parent | b0ec39fc45d80ae8a74694b191cfdc2cac54b5bd (diff) | |
download | redmine-2641f8ba912ce6016fd329c8fa724289a8e8dae7.tar.gz redmine-2641f8ba912ce6016fd329c8fa724289a8e8dae7.zip |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/changeset_test.rb | 11 |
1 files changed, 11 insertions, 0 deletions
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 |