Commit db3480bd authored by Holger Just's avatar Holger Just

[#436] Fix test relying on trailing whitespace.

parent a428fa60
......@@ -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 <foo@example.com>', :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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment