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 8d65ad6 commit 2415276Copy full SHA for 2415276
test/test_entry.rb
@@ -40,3 +40,26 @@ def test_case_insensitive_attribute_names
40
assert_equal ['Jensen'], @entry['SN']
41
end
42
43
+
44
+class TestEntryLDIF < Test::Unit::TestCase
45
+ def setup
46
+ @entry = Net::LDAP::Entry.from_single_ldif_string(
47
+ %Q{dn: something
48
+foo: foo
49
+barAttribute: bar
50
+ })
51
+ end
52
53
+ def test_attribute
54
+ assert_equal ['foo'], @entry.foo
55
+ assert_equal ['foo'], @entry.Foo
56
57
58
+ def test_modify_attribute
59
+ @entry.foo = 'bar'
60
+ assert_equal ['bar'], @entry.foo
61
62
+ @entry.fOo= 'baz'
63
+ assert_equal ['baz'], @entry.foo
64
65
+end
0 commit comments