diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-01-16 15:36:42 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-01-16 15:36:42 +0000 |
commit | e17fadd07ac34f96a10a8b1e77b9ee06bc4149b2 (patch) | |
tree | 14642fe9523caed2bf41fcd5d1abda8cfef65ebb /test/unit | |
parent | e9f62d1209bfa81df33bcb390eb67ba4cab90c0a (diff) | |
download | redmine-e17fadd07ac34f96a10a8b1e77b9ee06bc4149b2.tar.gz redmine-e17fadd07ac34f96a10a8b1e77b9ee06bc4149b2.zip |
Do not show "for only project I select" notification option on application settings form (#7294).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4730 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/user_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb index 98a577ebb..bf5b45a60 100644 --- a/test/unit/user_test.rb +++ b/test/unit/user_test.rb @@ -514,6 +514,12 @@ class UserTest < ActiveSupport::TestCase assert_equal 6, User.find(2).valid_notification_options.size end + def test_valid_notification_options_class_method + assert_equal 5, User.valid_notification_options.size + assert_equal 5, User.valid_notification_options(User.find(7)).size + assert_equal 6, User.valid_notification_options(User.find(2)).size + end + def test_mail_notification_all @jsmith.mail_notification = 'all' @jsmith.notified_project_ids = [] |