We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42add5f commit f5ac5fcCopy full SHA for f5ac5fc
lib/net/ldap/entry.rb
@@ -198,6 +198,6 @@ def setter?(sym)
198
private :setter?
199
200
def ==(other)
201
- return self['dn'] == other['dn']
+ return @myhash == other.to_h
202
end
203
end # class Entry
test/test_entry.rb
@@ -59,8 +59,11 @@ def test_equal_operator
59
@entry_two = Net::LDAP::Entry.new 'cn=Barbara,o=corp'
60
assert_equal @entry, @entry_two
61
62
- @entry_three = Net::LDAP::Entry.new 'cn=Bob,o=corp'
63
- assert_not_equal @entry, @entry_three
+ @entry['sn'] = 'Jensen'
+ assert_not_equal @entry, @entry_two
64
+
65
+ @entry_two['sn'] = 'Jensen'
66
+ assert_equal @entry, @entry_two
67
68
69
0 commit comments