diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-04-03 11:33:28 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-04-03 11:33:28 +0000 |
commit | 05a9275fdaabf5fd38f060fb9bd96456d4db3dd6 (patch) | |
tree | ea89e81e13d67223b639d1319748f40760f4d859 /test/unit/user_preference_test.rb | |
parent | 25eb92c0dc337b3a1167642433a3d6af73c1a68d (diff) | |
download | redmine-05a9275fdaabf5fd38f060fb9bd96456d4db3dd6.tar.gz redmine-05a9275fdaabf5fd38f060fb9bd96456d4db3dd6.zip |
"I don't want to be notified of changes that I make myself" as Default for all User (#14574).
git-svn-id: http://svn.redmine.org/redmine/trunk@15288 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/user_preference_test.rb')
-rw-r--r-- | test/unit/user_preference_test.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/unit/user_preference_test.rb b/test/unit/user_preference_test.rb index a2f3c7f1f..7303d178f 100644 --- a/test/unit/user_preference_test.rb +++ b/test/unit/user_preference_test.rb @@ -32,6 +32,11 @@ class UserPreferenceTest < ActiveSupport::TestCase end end + def test_no_self_notified_should_default_to_true + preference = UserPreference.new + assert_equal true, preference.no_self_notified + end + def test_create user = User.new(:firstname => "new", :lastname => "user", :mail => "newuser@somenet.foo") user.login = "newuser" @@ -67,11 +72,6 @@ class UserPreferenceTest < ActiveSupport::TestCase assert_kind_of Hash, up.others end - def test_others_should_be_blank_after_initialization - pref = User.new.pref - assert_equal({}, pref.others) - end - def test_reading_value_from_nil_others_hash up = UserPreference.new(:user => User.new) up.others = nil |