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
This commit is contained in:
Jean-Philippe Lang
2011-01-16 15:36:42 +00:00
parent e9f62d1209
commit e17fadd07a
3 changed files with 13 additions and 3 deletions
+6
View File
@@ -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 = []