GitLab steht Mittwoch, den 08. Juli, zwischen 09:00 und 13:00 Uhr aufgrund von Wartungsarbeiten nicht zur Verfügung.

Commit 8682b988 authored by marutosijp's avatar marutosijp

code style cleanup at RepositoryTest#test_for_changeset_comments_strip

git-svn-id: https://svn.redmine.org/redmine/trunk@16810 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent d2e817db
...@@ -277,7 +277,7 @@ class RepositoryTest < ActiveSupport::TestCase ...@@ -277,7 +277,7 @@ class RepositoryTest < ActiveSupport::TestCase
def test_for_changeset_comments_strip def test_for_changeset_comments_strip
repository = Repository::Mercurial.create( repository = Repository::Mercurial.create(
:project => Project.find( 4 ), :project => Project.find(4),
:url => '/foo/bar/baz' ) :url => '/foo/bar/baz' )
long_whitespace = " " long_whitespace = " "
expected_comment = "This is a loooooooooooooooooooooooooooong comment" expected_comment = "This is a loooooooooooooooooooooooooooong comment"
...@@ -287,8 +287,8 @@ class RepositoryTest < ActiveSupport::TestCase ...@@ -287,8 +287,8 @@ class RepositoryTest < ActiveSupport::TestCase
: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 expected_comment, changeset.comments assert_equal expected_comment, changeset.comments
end end
......
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