File: test_entry.rb

package info (click to toggle)
ruby-activeldap 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,588 kB
  • sloc: ruby: 18,143; sh: 12; makefile: 5
file content (20 lines) | stat: -rw-r--r-- 526 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# -*- coding: utf-8 -*-

require 'al-test-utils'

class TestEntry < Test::Unit::TestCase
  include AlTestUtils

  def test_all
    make_temporary_group do |group|
      make_temporary_user do |user, password|
        all_entries = [ActiveLdap::Base.base]
        all_entries += [user.dn, user.base]
        all_entries += [group.dn, group.base]
        all_entries += [@group_of_urls_class.base]
        assert_equal(all_entries.sort,
                     ActiveLdap::Entry.all.collect(&:dn).sort)
      end
    end
  end
end