summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-10-21 19:11:39 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-10-21 19:11:39 +0000
commit89b4c924440303e852a4374edc6fa9192fe1df60 (patch)
tree36029ffa0d7e1408fe7441dc4caf909f4c2f2f51 /test
parentf053c1a5af4a93c0b003fc624cac1a6a35a8ef89 (diff)
downloadredmine-89b4c924440303e852a4374edc6fa9192fe1df60.tar.gz
redmine-89b4c924440303e852a4374edc6fa9192fe1df60.zip
Hide email by default for new users (#21042).
git-svn-id: http://svn.redmine.org/redmine/trunk@14726 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/user_preference_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/user_preference_test.rb b/test/unit/user_preference_test.rb
index ee5cb65d4..c76862408 100644
--- a/test/unit/user_preference_test.rb
+++ b/test/unit/user_preference_test.rb
@@ -20,6 +20,11 @@ require File.expand_path('../../test_helper', __FILE__)
class UserPreferenceTest < ActiveSupport::TestCase
fixtures :users, :user_preferences
+ def test_hide_mail_should_default_to_true
+ preference = UserPreference.new
+ assert_equal true, preference.hide_mail
+ end
+
def test_create
user = User.new(:firstname => "new", :lastname => "user", :mail => "newuser@somenet.foo")
user.login = "newuser"