summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2017-07-10 04:48:08 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2017-07-10 04:48:08 +0000
commit7187e8dade5f123cdf25019b877b66664c835b6d (patch)
tree228a611b9d9f11234048044bbcf7693012f3eb8d
parent3a0cc09d7cc8f1495a6d6ef1012908a93a32c3ae (diff)
downloadredmine-7187e8dade5f123cdf25019b877b66664c835b6d.tar.gz
redmine-7187e8dade5f123cdf25019b877b66664c835b6d.zip
code style cleanup at RepositoryTest#test_for_changeset_comments_strip
git-svn-id: http://svn.redmine.org/redmine/trunk@16810 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--test/unit/repository_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/repository_test.rb b/test/unit/repository_test.rb
index cbcf8a0e9..def3a8ce5 100644
--- a/test/unit/repository_test.rb
+++ b/test/unit/repository_test.rb
@@ -277,7 +277,7 @@ class RepositoryTest < ActiveSupport::TestCase
def test_for_changeset_comments_strip
repository = Repository::Mercurial.create(
- :project => Project.find( 4 ),
+ :project => Project.find(4),
:url => '/foo/bar/baz' )
long_whitespace = " "
expected_comment = "This is a loooooooooooooooooooooooooooong comment"
@@ -287,8 +287,8 @@ class RepositoryTest < ActiveSupport::TestCase
:comments => comment, :commit_date => Time.now,
:revision => 0, :scmid => 'f39b7922fb3c',
:committer => 'foo <foo@example.com>',
- :committed_on => Time.now, :repository => repository )
- assert( changeset.save )
+ :committed_on => Time.now, :repository => repository)
+ assert(changeset.save)
assert_not_equal comment, changeset.comments
assert_equal expected_comment, changeset.comments
end