summaryrefslogtreecommitdiffstats
path: root/test/unit/repository_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-10-05 09:41:11 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-10-05 09:41:11 +0000
commita77b462a53a02dbead1042bd12060177ade7b22a (patch)
tree4d58c8dee5c021a8dd1af32a8fbe741e3c6ea1d0 /test/unit/repository_test.rb
parentb59d10968036b7da57a499895a9a2d91ea227c34 (diff)
downloadredmine-a77b462a53a02dbead1042bd12060177ade7b22a.tar.gz
redmine-a77b462a53a02dbead1042bd12060177ade7b22a.zip
Support for multiple issue update keywords/rules in commit messages (#4911).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12197 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/repository_test.rb')
-rw-r--r--test/unit/repository_test.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/unit/repository_test.rb b/test/unit/repository_test.rb
index 390a5334e..3ff9fc51e 100644
--- a/test/unit/repository_test.rb
+++ b/test/unit/repository_test.rb
@@ -182,11 +182,10 @@ class RepositoryTest < ActiveSupport::TestCase
def test_scan_changesets_for_issue_ids
Setting.default_language = 'en'
- # choosing a status to apply to fix issues
- Setting.commit_fix_status_id = IssueStatus.where(:is_closed => true).first.id
- Setting.commit_fix_done_ratio = "90"
Setting.commit_ref_keywords = 'refs , references, IssueID'
- Setting.commit_fix_keywords = 'fixes , closes'
+ Setting.commit_update_keywords = {
+ 'fixes , closes' => {'status_id' => IssueStatus.where(:is_closed => true).first.id, 'done_ratio' => '90'}
+ }
Setting.default_language = 'en'
ActionMailer::Base.deliveries.clear