diff options
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 |