Browse files

[#436] Fix test relying on trailing whitespace.

  • Loading branch information...
1 parent a428fa6 commit db3480bdb693e7172c22491592767cadff85c393 @meineerde meineerde committed May 31, 2011
Showing with 2 additions and 6 deletions.
  1. +2 −6 test/unit/repository_test.rb
View
8 test/unit/repository_test.rb
@@ -109,17 +109,13 @@ def test_scan_changesets_for_issue_ids
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

0 comments on commit db3480b

Please sign in to comment.