@@ -38,31 +38,31 @@ def test_ldif_with_password
3838
3939  def  test_ldif_with_continuation_lines 
4040    ds  =  Net ::LDAP ::Dataset ::read_ldif ( StringIO . new ( "dn: abcdefg\r \n  hijklmn\r \n \r \n " ) ) 
41-     assert_equal ( true ,  ds . has_key ?( "abcdefghijklmn" ) ) 
41+     assert_equal ( true ,  ds . key ?( "abcdefghijklmn" ) ) 
4242  end 
4343
4444  def  test_ldif_with_continuation_lines_and_extra_whitespace 
4545    ds1  =  Net ::LDAP ::Dataset ::read_ldif ( StringIO . new ( "dn: abcdefg\r \n    hijklmn\r \n \r \n " ) ) 
46-     assert_equal ( true ,  ds1 . has_key ?( "abcdefg  hijklmn" ) ) 
46+     assert_equal ( true ,  ds1 . key ?( "abcdefg  hijklmn" ) ) 
4747    ds2  =  Net ::LDAP ::Dataset ::read_ldif ( StringIO . new ( "dn: abcdefg\r \n  hij  klmn\r \n \r \n " ) ) 
48-     assert_equal ( true ,  ds2 . has_key ?( "abcdefghij  klmn" ) ) 
48+     assert_equal ( true ,  ds2 . key ?( "abcdefghij  klmn" ) ) 
4949  end 
5050
5151  def  test_ldif_tab_is_not_continuation 
5252    ds  =  Net ::LDAP ::Dataset ::read_ldif ( StringIO . new ( "dn: key\r \n \t notcontinued\r \n \r \n " ) ) 
53-     assert_equal ( true ,  ds . has_key ?( "key" ) ) 
53+     assert_equal ( true ,  ds . key ?( "key" ) ) 
5454  end 
5555
5656  def  test_ldif_with_base64_dn 
5757    str  =  "dn:: Q049QmFzZTY0IGRuIHRlc3QsT1U9VGVzdCxPVT1Vbml0cyxEQz1leGFtcGxlLERDPWNvbQ==\r \n \r \n " 
5858    ds  =  Net ::LDAP ::Dataset ::read_ldif ( StringIO . new ( str ) ) 
59-     assert_equal ( true ,  ds . has_key ?( "CN=Base64 dn test,OU=Test,OU=Units,DC=example,DC=com" ) ) 
59+     assert_equal ( true ,  ds . key ?( "CN=Base64 dn test,OU=Test,OU=Units,DC=example,DC=com" ) ) 
6060  end 
6161
6262  def  test_ldif_with_base64_dn_and_continuation_lines 
6363    str  =  "dn:: Q049QmFzZTY0IGRuIHRlc3Qgd2l0aCBjb250aW51YXRpb24gbGluZSxPVT1UZXN0LE9VPVVua\r \n  XRzLERDPWV4YW1wbGUsREM9Y29t\r \n \r \n " 
6464    ds  =  Net ::LDAP ::Dataset ::read_ldif ( StringIO . new ( str ) ) 
65-     assert_equal ( true ,  ds . has_key ?( "CN=Base64 dn test with continuation line,OU=Test,OU=Units,DC=example,DC=com" ) ) 
65+     assert_equal ( true ,  ds . key ?( "CN=Base64 dn test with continuation line,OU=Test,OU=Units,DC=example,DC=com" ) ) 
6666  end 
6767
6868  # TODO, INADEQUATE. We need some more tests 
0 commit comments