# File test/test_passwd.rb, line 44 def test_empty_user assert_exception(RuntimeError) { @passwd.add_user(nil, 'foo') } assert_exception(RuntimeError) { @passwd.add_user('', 'foo') } assert_exception(RuntimeError) { @passwd.add_user(' ', 'foo') } assert_exception(RuntimeError) { @passwd.add_encrypted_user(nil, 'foo') } assert_exception(RuntimeError) { @passwd.add_encrypted_user('', 'foo') } assert_exception(RuntimeError) { @passwd.add_encrypted_user(' ', 'foo') } end