Added User#notify_about? to check when a user should be notified about an event

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4218 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Eric Davis
2010-09-28 18:22:10 +00:00
parent a61ee73e69
commit c059300d99
6 changed files with 129 additions and 6 deletions
+1 -1
View File
@@ -152,7 +152,7 @@ class MailHandlerTest < ActiveSupport::TestCase
assert !issue.new_record?
issue.reload
assert issue.watched_by?(User.find_by_mail('dlopper@somenet.foo'))
assert_equal 1, issue.watchers.size
assert_equal 1, issue.watcher_user_ids.size
end
def test_add_issue_by_unknown_user