scm: remove trailing white-spaces in unit changeset test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5650 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
c17a78c771
commit
973f3eb50e
|
@ -38,12 +38,12 @@ class ChangesetTest < ActiveSupport::TestCase
|
||||||
Setting.commit_fix_done_ratio = '90'
|
Setting.commit_fix_done_ratio = '90'
|
||||||
Setting.commit_ref_keywords = '*'
|
Setting.commit_ref_keywords = '*'
|
||||||
Setting.commit_fix_keywords = 'fixes , closes'
|
Setting.commit_fix_keywords = 'fixes , closes'
|
||||||
|
|
||||||
c = Changeset.new(:repository => Project.find(1).repository,
|
c = Changeset.new(:repository => Project.find(1).repository,
|
||||||
:committed_on => Time.now,
|
:committed_on => Time.now,
|
||||||
:comments => 'New commit (#2). Fixes #1')
|
:comments => 'New commit (#2). Fixes #1')
|
||||||
c.scan_comment_for_issue_ids
|
c.scan_comment_for_issue_ids
|
||||||
|
|
||||||
assert_equal [1, 2], c.issue_ids.sort
|
assert_equal [1, 2], c.issue_ids.sort
|
||||||
fixed = Issue.find(1)
|
fixed = Issue.find(1)
|
||||||
assert fixed.closed?
|
assert fixed.closed?
|
||||||
|
@ -62,7 +62,7 @@ class ChangesetTest < ActiveSupport::TestCase
|
||||||
|
|
||||||
assert_equal [1], c.issue_ids.sort
|
assert_equal [1], c.issue_ids.sort
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_ref_keywords_any_only
|
def test_ref_keywords_any_only
|
||||||
Setting.commit_ref_keywords = '*'
|
Setting.commit_ref_keywords = '*'
|
||||||
Setting.commit_fix_keywords = ''
|
Setting.commit_fix_keywords = ''
|
||||||
|
@ -71,10 +71,10 @@ class ChangesetTest < ActiveSupport::TestCase
|
||||||
:committed_on => Time.now,
|
:committed_on => Time.now,
|
||||||
:comments => 'Ignores #2. Refs #1')
|
:comments => 'Ignores #2. Refs #1')
|
||||||
c.scan_comment_for_issue_ids
|
c.scan_comment_for_issue_ids
|
||||||
|
|
||||||
assert_equal [1, 2], c.issue_ids.sort
|
assert_equal [1, 2], c.issue_ids.sort
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_ref_keywords_any_with_timelog
|
def test_ref_keywords_any_with_timelog
|
||||||
Setting.commit_ref_keywords = '*'
|
Setting.commit_ref_keywords = '*'
|
||||||
Setting.commit_logtime_enabled = '1'
|
Setting.commit_logtime_enabled = '1'
|
||||||
|
|
Loading…
Reference in New Issue