]> source.dussan.org Git - redmine.git/commitdiff
scm: add dummy revision at test_ref_keywords_any_line_start of unit changeset test.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 29 Aug 2011 12:07:17 +0000 (12:07 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 29 Aug 2011 12:07:17 +0000 (12:07 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6730 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/changeset_test.rb

index 4778fd2c144dba53d67c5f04cdba83976570d1f0..8d7473175b26e398359fb6ba0bcbb2350fe39a45 100644 (file)
@@ -140,10 +140,10 @@ class ChangesetTest < ActiveSupport::TestCase
 
   def test_ref_keywords_any_line_start
     Setting.commit_ref_keywords = '*'
-
     c = Changeset.new(:repository   => Project.find(1).repository,
                       :committed_on => Time.now,
-                      :comments     => '#1 is the reason of this commit')
+                      :comments     => '#1 is the reason of this commit',
+                      :revision     => '12345')
     c.scan_comment_for_issue_ids
 
     assert_equal [1], c.issue_ids.sort