test/test_asl_usermod.rb in activesambaldap-0.0.4 vs test/test_asl_usermod.rb in activesambaldap-0.0.5

- old
+ new

@@ -349,11 +349,11 @@ args = ["--expire-date", new_expire_date.iso8601] assert_asl_usermod_successfully(user.uid, password, *args) new_user = @user_class.find(user.uid) - assert_equal(new_expire_date.to_i.to_s, new_user.samba_kickoff_time) + assert_equal(new_expire_date.to_i, new_user.samba_kickoff_time) end end def test_can_change_password make_dummy_user do |user, password| @@ -515,9 +515,17 @@ args = ["--disable-user"] assert_asl_usermod_successfully(user.uid, password, *args) new_user = @user_class.find(user.uid) assert(!new_user.enabled?) assert(new_user.disabled?) + end + end + + def test_wrong_password + make_dummy_user do |user, password| + assert_asl_usermod_failed(user.uid, + "wrong-#{password}", + _("password doesn't match.") + "\n") end end private def assert_asl_usermod_successfully(name, password, *args)