diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-08 12:23:47 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-08 12:23:47 +0000 |
commit | 7acd04fb87229cd35c5c7a765bf1cfe9aaf69052 (patch) | |
tree | 5f0ebbf6dad1356c3ec76fff9fb96344c28e138c /test/unit/repository_test.rb | |
parent | 133ca59edb5aa835fd8c9f967c06d8b5a4e8d581 (diff) | |
download | redmine-7acd04fb87229cd35c5c7a765bf1cfe9aaf69052.tar.gz redmine-7acd04fb87229cd35c5c7a765bf1cfe9aaf69052.zip |
Tests should not change settings.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9949 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/repository_test.rb')
-rw-r--r-- | test/unit/repository_test.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/unit/repository_test.rb b/test/unit/repository_test.rb index bf17b8884..f99711623 100644 --- a/test/unit/repository_test.rb +++ b/test/unit/repository_test.rb @@ -149,7 +149,6 @@ class RepositoryTest < ActiveSupport::TestCase def test_scan_changesets_for_issue_ids Setting.default_language = 'en' - Setting.notified_events = ['issue_added','issue_updated'] # choosing a status to apply to fix issues Setting.commit_fix_status_id = IssueStatus.find( @@ -166,7 +165,9 @@ class RepositoryTest < ActiveSupport::TestCase assert !fixed_issue.status.is_closed? old_status = fixed_issue.status - Repository.scan_changesets_for_issue_ids + with_settings :notified_events => %w(issue_added issue_updated) do + Repository.scan_changesets_for_issue_ids + end assert_equal [101, 102], Issue.find(3).changeset_ids # fixed issues |