summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-05-25 11:43:20 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-05-25 11:43:20 +0000
commite8d092e46ad8c77419792cc5b418251a1c0a09c6 (patch)
treee124273904e4cc0f7b862297025e05e21ed25257 /test
parent39fc8f38b8695820101149228f03de9638e19228 (diff)
downloadredmine-e8d092e46ad8c77419792cc5b418251a1c0a09c6.tar.gz
redmine-e8d092e46ad8c77419792cc5b418251a1c0a09c6.zip
Fixed: using '*' as keyword for repository referencing keywords doesn't work when issue id is at the beginning of a line (#1253).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1451 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/changeset_test.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/unit/changeset_test.rb b/test/unit/changeset_test.rb
index bbfe6952d..6cc53d852 100644
--- a/test/unit/changeset_test.rb
+++ b/test/unit/changeset_test.rb
@@ -39,6 +39,17 @@ class ChangesetTest < Test::Unit::TestCase
assert fixed.closed?
assert_equal 90, fixed.done_ratio
end
+
+ 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')
+ c.scan_comment_for_issue_ids
+
+ assert_equal [1], c.issue_ids.sort
+ end
def test_previous
changeset = Changeset.find_by_revision('3')