diff options
Diffstat (limited to 'vendor/gems/net-ldap-0.2.2/test/test_entry.rb')
-rw-r--r-- | vendor/gems/net-ldap-0.2.2/test/test_entry.rb | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/vendor/gems/net-ldap-0.2.2/test/test_entry.rb b/vendor/gems/net-ldap-0.2.2/test/test_entry.rb deleted file mode 100644 index 73898d675..000000000 --- a/vendor/gems/net-ldap-0.2.2/test/test_entry.rb +++ /dev/null @@ -1,59 +0,0 @@ -require 'common' - -=begin -class TestEntry < Test::Unit::TestCase -Commented out until I can make it a spec. - context "An instance of Entry" do - setup do - @entry = Net::LDAP::Entry.new 'cn=Barbara,o=corp' - end - - should "be initialized with the DN" do - assert_equal 'cn=Barbara,o=corp', @entry.dn - end - - should 'return an empty array when accessing a nonexistent attribute (index lookup)' do - assert_equal [], @entry['sn'] - end - - should 'return an empty array when accessing a nonexistent attribute (method call)' do - assert_equal [], @entry.sn - end - - should 'create an attribute on assignment (index lookup)' do - @entry['sn'] = 'Jensen' - assert_equal ['Jensen'], @entry['sn'] - end - - should 'create an attribute on assignment (method call)' do - @entry.sn = 'Jensen' - assert_equal ['Jensen'], @entry.sn - end - - should 'have attributes accessible by index lookup' do - @entry['sn'] = 'Jensen' - assert_equal ['Jensen'], @entry['sn'] - end - - should 'have attributes accessible using a Symbol as the index' do - @entry[:sn] = 'Jensen' - assert_equal ['Jensen'], @entry[:sn] - end - - should 'have attributes accessible by method call' do - @entry['sn'] = 'Jensen' - assert_equal ['Jensen'], @entry.sn - end - - should 'ignore case of attribute names' do - @entry['sn'] = 'Jensen' - assert_equal ['Jensen'], @entry.sn - assert_equal ['Jensen'], @entry.Sn - assert_equal ['Jensen'], @entry.SN - assert_equal ['Jensen'], @entry['sn'] - assert_equal ['Jensen'], @entry['Sn'] - assert_equal ['Jensen'], @entry['SN'] - end - end -end -=end |