diff --git a/test/unit/repository_test.rb b/test/unit/repository_test.rb index f3f4a3e5..00f3bdc0 100644 --- a/test/unit/repository_test.rb +++ b/test/unit/repository_test.rb @@ -109,17 +109,13 @@ class RepositoryTest < ActiveSupport::TestCase def test_for_changeset_comments_strip repository = Repository::Mercurial.create( :project => Project.find( 4 ), :url => '/foo/bar/baz' ) - comment = <<-COMMENT - This is a loooooooooooooooooooooooooooong comment - - - COMMENT + comment = "This is a looooooooooooooong comment" + (" " * 80 + "\n") * 5 changeset = Changeset.new( :comments => comment, :commit_date => Time.now, :revision => 0, :scmid => 'f39b7922fb3c', :committer => 'foo ', :committed_on => Time.now, :repository => repository ) assert( changeset.save ) assert_not_equal( comment, changeset.comments ) - assert_equal( 'This is a loooooooooooooooooooooooooooong comment', changeset.comments ) + assert_equal( 'This is a looooooooooooooong comment', changeset.comments ) end def test_for_urls_strip