mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
replace white spaces of here-text at RepositoryTest#test_for_changeset_comments_strip
git-svn-id: http://svn.redmine.org/redmine/trunk@16809 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
9748fc4668
commit
3a0cc09d7c
@ -279,20 +279,18 @@ class RepositoryTest < ActiveSupport::TestCase
|
|||||||
repository = Repository::Mercurial.create(
|
repository = Repository::Mercurial.create(
|
||||||
:project => Project.find( 4 ),
|
:project => Project.find( 4 ),
|
||||||
:url => '/foo/bar/baz' )
|
:url => '/foo/bar/baz' )
|
||||||
comment = <<-COMMENT
|
long_whitespace = " "
|
||||||
This is a loooooooooooooooooooooooooooong comment
|
expected_comment = "This is a loooooooooooooooooooooooooooong comment"
|
||||||
|
comment = "#{expected_comment}#{long_whitespace}\n"
|
||||||
|
3.times {comment << "#{long_whitespace}\n"}
|
||||||
COMMENT
|
|
||||||
changeset = Changeset.new(
|
changeset = Changeset.new(
|
||||||
:comments => comment, :commit_date => Time.now,
|
:comments => comment, :commit_date => Time.now,
|
||||||
:revision => 0, :scmid => 'f39b7922fb3c',
|
:revision => 0, :scmid => 'f39b7922fb3c',
|
||||||
:committer => 'foo <foo@example.com>',
|
:committer => 'foo <foo@example.com>',
|
||||||
:committed_on => Time.now, :repository => repository )
|
:committed_on => Time.now, :repository => repository )
|
||||||
assert( changeset.save )
|
assert( changeset.save )
|
||||||
assert_not_equal( comment, changeset.comments )
|
assert_not_equal comment, changeset.comments
|
||||||
assert_equal( 'This is a loooooooooooooooooooooooooooong comment',
|
assert_equal expected_comment, changeset.comments
|
||||||
changeset.comments )
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_for_urls_strip_cvs
|
def test_for_urls_strip_cvs
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user