Sha256: 53d9d72f242b0c4881efdb5393feba4a3bad49c8b65d5a494d0786061f495d24

Contents?: true

Size: 558 Bytes

Versions: 7

Compression:

Stored size: 558 Bytes

Contents

require 'asl-test-utils'

class EntryTest < Test::Unit::TestCase
  include AslTestUtils

  priority :must
  def test_entry_create
    assert_created_user("temporary-user1", false)
    assert_created_user("temporary-user2", true)
  end

  private
  def assert_created_user(name, stringify)
    params = {:uid => name}
    params = params.stringify_keys if stringify
    user = @user_class.create(params)
    assert(@user_class.exists?(name))
    assert_equal(ActiveSambaLdap::Group::DOMAIN_USERS_RID,
                 user.primary_group.gid_number)
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
activesambaldap-0.1.0 test/test_entry.rb
activesambaldap-0.0.9 test/test_entry.rb
activesambaldap-0.0.8 test/test_entry.rb
ActiveSambaLdap-0.0.7 test/test_entry.rb
activesambaldap-0.0.7 test/test_entry.rb
activesambaldap-0.0.5 test/test_entry.rb
activesambaldap-0.0.6 test/test_entry.rb