diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2010-09-28 18:22:00 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2010-09-28 18:22:00 +0000 |
commit | 0316af7f6bfa47ba1166eda3c5c7167229033a76 (patch) | |
tree | db8d004f118674335919690a2f38b1b59782941b /test/unit/user_test.rb | |
parent | 3a3263102a7cda4be1c90168a9d32fa904d58272 (diff) | |
download | redmine-0316af7f6bfa47ba1166eda3c5c7167229033a76.tar.gz redmine-0316af7f6bfa47ba1166eda3c5c7167229033a76.zip |
Converted User#mail_notification from a boolean to a string.
The string will now store which type of notification option to use.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4216 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/user_test.rb')
-rw-r--r-- | test/unit/user_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb index c263eafc0..1ecbc5927 100644 --- a/test/unit/user_test.rb +++ b/test/unit/user_test.rb @@ -285,7 +285,7 @@ class UserTest < ActiveSupport::TestCase end def test_mail_notification_all - @jsmith.mail_notification = true + @jsmith.mail_notification = 'all' @jsmith.notified_project_ids = [] @jsmith.save @jsmith.reload @@ -293,15 +293,15 @@ class UserTest < ActiveSupport::TestCase end def test_mail_notification_selected - @jsmith.mail_notification = false + @jsmith.mail_notification = 'selected' @jsmith.notified_project_ids = [1] @jsmith.save @jsmith.reload assert Project.find(1).recipients.include?(@jsmith.mail) end - def test_mail_notification_none - @jsmith.mail_notification = false + def test_mail_notification_only_my_events + @jsmith.mail_notification = 'only_my_events' @jsmith.notified_project_ids = [] @jsmith.save @jsmith.reload |