From e17fadd07ac34f96a10a8b1e77b9ee06bc4149b2 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 16 Jan 2011 15:36:42 +0000 Subject: 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 --- test/unit/user_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') 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 = [] -- cgit v1.2.3