Sha256: a7dd211e898f29767b24d9d7d39398c30e1c1446b98c58f761868c6aaf03dee2

Contents?: true

Size: 1 KB

Versions: 8

Compression:

Stored size: 1 KB

Contents

#Require main environment
require 'dm-ldap-adapter'

#Require developer depdencies
require 'dm-sqlite-adapter'
require 'dm-migrations'

print "datamapper version:"
puts DataMapper::VERSION

#Logging needs to be cleaned up...
require 'slf4r/ruby_logger'
Slf4r::LoggerFacade4RubyLogger.level = :warn

require 'ldap_resource'

DataMapper.setup(:default, 'sqlite3::memory:')
DataMapper.setup(:ldap, {
                   :adapter  => 'ldap',
                   :host => 'localhost',
                   :port => '389',
                   :base => "dc=example,dc=com",
                   :facade => (ENV['FACADE'] || :net_ldap).to_sym,
                   :bind_name => "cn=admin,dc=example,dc=com",
                   :password => "behappy"
})

puts "using facade #{(ENV['FACADE'] || :net_ldap).to_sym}"

# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[File.join(File.dirname(__FILE__), "support/**/*.rb")].each {|f| require f}

DataMapper.auto_migrate!(:default)


Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dm-ldap-adapter-0.4.7 spec/spec_helper.rb
dm-ldap-adapter-0.4.8 spec/spec_helper.rb
dm-ldap-adapter-0.4.6 spec/spec_helper.rb
dm-ldap-adapter-0.4.6-java spec/spec_helper.rb
dm-ldap-adapter-0.4.5-java spec/spec_helper.rb
dm-ldap-adapter-0.4.5 spec/spec_helper.rb
dm-ldap-adapter-0.4.4-java spec/spec_helper.rb
dm-ldap-adapter-0.4.4 spec/spec_helper.rb