# File test/test_passwd.rb, line 65 def test_empty_password assert_exception(RuntimeError) { @passwd.add_user('alice', nil) } assert_exception(RuntimeError) { @passwd.add_user('alice', '') } assert_exception(RuntimeError) { @passwd.add_encrypted_user('alice', nil) } assert_exception(RuntimeError) { @passwd.add_encrypted_user('alice', '') } end