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

test/unit/changeset_test.rb

index 3760c1e67cbe1c5c1519409ee5a54b511ded16b1..8d0d2a174842b00b3bcfae90eb1ca8fc0edc9611 100644 (file)
@@ -150,10 +150,10 @@ class ChangesetTest < ActiveSupport::TestCase
 
   def test_ref_keywords_allow_brackets_around_a_issue_number
     Setting.commit_ref_keywords = '*'
-
     c = Changeset.new(:repository   => Project.find(1).repository,
                       :committed_on => Time.now,
-                      :comments     => '[#1] Worked on this issue')
+                      :comments     => '[#1] Worked on this issue',
+                      :revision     => '12345')
     c.scan_comment_for_issue_ids
 
     assert_equal [1], c.issue_ids.sort