@@ -38,12 +38,12 class ChangesetTest < ActiveSupport::TestCase | |||||
38 | Setting.commit_fix_done_ratio = '90' |
|
38 | Setting.commit_fix_done_ratio = '90' | |
39 | Setting.commit_ref_keywords = '*' |
|
39 | Setting.commit_ref_keywords = '*' | |
40 | Setting.commit_fix_keywords = 'fixes , closes' |
|
40 | Setting.commit_fix_keywords = 'fixes , closes' | |
41 |
|
41 | |||
42 | c = Changeset.new(:repository => Project.find(1).repository, |
|
42 | c = Changeset.new(:repository => Project.find(1).repository, | |
43 | :committed_on => Time.now, |
|
43 | :committed_on => Time.now, | |
44 | :comments => 'New commit (#2). Fixes #1') |
|
44 | :comments => 'New commit (#2). Fixes #1') | |
45 | c.scan_comment_for_issue_ids |
|
45 | c.scan_comment_for_issue_ids | |
46 |
|
46 | |||
47 | assert_equal [1, 2], c.issue_ids.sort |
|
47 | assert_equal [1, 2], c.issue_ids.sort | |
48 | fixed = Issue.find(1) |
|
48 | fixed = Issue.find(1) | |
49 | assert fixed.closed? |
|
49 | assert fixed.closed? | |
@@ -62,7 +62,7 class ChangesetTest < ActiveSupport::TestCase | |||||
62 |
|
62 | |||
63 | assert_equal [1], c.issue_ids.sort |
|
63 | assert_equal [1], c.issue_ids.sort | |
64 | end |
|
64 | end | |
65 |
|
65 | |||
66 | def test_ref_keywords_any_only |
|
66 | def test_ref_keywords_any_only | |
67 | Setting.commit_ref_keywords = '*' |
|
67 | Setting.commit_ref_keywords = '*' | |
68 | Setting.commit_fix_keywords = '' |
|
68 | Setting.commit_fix_keywords = '' | |
@@ -71,10 +71,10 class ChangesetTest < ActiveSupport::TestCase | |||||
71 | :committed_on => Time.now, |
|
71 | :committed_on => Time.now, | |
72 | :comments => 'Ignores #2. Refs #1') |
|
72 | :comments => 'Ignores #2. Refs #1') | |
73 | c.scan_comment_for_issue_ids |
|
73 | c.scan_comment_for_issue_ids | |
74 |
|
74 | |||
75 | assert_equal [1, 2], c.issue_ids.sort |
|
75 | assert_equal [1, 2], c.issue_ids.sort | |
76 | end |
|
76 | end | |
77 |
|
77 | |||
78 | def test_ref_keywords_any_with_timelog |
|
78 | def test_ref_keywords_any_with_timelog | |
79 | Setting.commit_ref_keywords = '*' |
|
79 | Setting.commit_ref_keywords = '*' | |
80 | Setting.commit_logtime_enabled = '1' |
|
80 | Setting.commit_logtime_enabled = '1' |
General Comments 0
You need to be logged in to leave comments.
Login now