From: Toshi MARUYAMA Date: Mon, 29 Aug 2011 12:09:04 +0000 (+0000) Subject: scm: add dummy revision at test_ref_keywords_allow_brackets_around_a_issue_number... X-Git-Tag: 1.3.0~1230 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c26be908bfe5e3caff29417d8261491902b4ede3;p=redmine.git scm: add dummy revision at test_ref_keywords_allow_brackets_around_a_issue_number of unit changeset test. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6732 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/unit/changeset_test.rb b/test/unit/changeset_test.rb index 3760c1e67..8d0d2a174 100644 --- a/test/unit/changeset_test.rb +++ b/test/unit/changeset_test.rb @@ -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