diff --git a/test/unit/changeset_test.rb b/test/unit/changeset_test.rb index 4778fd2..8d74731 100644 --- a/test/unit/changeset_test.rb +++ b/test/unit/changeset_test.rb @@ -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