Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[#436] Fix test relying on trailing whitespace.

  • Loading branch information...
commit db3480bdb693e7172c22491592767cadff85c393 1 parent a428fa6
Holger Just meineerde authored

Showing 1 changed file with 2 additions and 6 deletions. Show diff stats Hide diff stats

  1. +2 6 test/unit/repository_test.rb
8 test/unit/repository_test.rb
@@ -109,17 +109,13 @@ def test_scan_changesets_for_issue_ids
109 109
110 110 def test_for_changeset_comments_strip
111 111 repository = Repository::Mercurial.create( :project => Project.find( 4 ), :url => '/foo/bar/baz' )
112   - comment = <<-COMMENT
113   - This is a loooooooooooooooooooooooooooong comment
114   -
115   -
116   - COMMENT
  112 + comment = "This is a looooooooooooooong comment" + (" " * 80 + "\n") * 5
117 113 changeset = Changeset.new(
118 114 :comments => comment, :commit_date => Time.now, :revision => 0, :scmid => 'f39b7922fb3c',
119 115 :committer => 'foo <foo@example.com>', :committed_on => Time.now, :repository => repository )
120 116 assert( changeset.save )
121 117 assert_not_equal( comment, changeset.comments )
122   - assert_equal( 'This is a loooooooooooooooooooooooooooong comment', changeset.comments )
  118 + assert_equal( 'This is a looooooooooooooong comment', changeset.comments )
123 119 end
124 120
125 121 def test_for_urls_strip

0 comments on commit db3480b

Please sign in to comment.
Something went wrong with that request. Please try again.