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