Sha256: ce4bb6c15f9d39510cb3bd19e4c82ee58cae700db3853b0e6e0e70769075bf2a

Contents?: true

Size: 433 Bytes

Versions: 5

Compression:

Stored size: 433 Bytes

Contents

require File.expand_path('../spec_helper', File.dirname(__FILE__))

describe 'Connection' do
  it 'accepts a proc for ldap_config' do
    ::Devise.ldap_config = Proc.new() {{
      'host' => 'localhost',
      'port' => 3389,
      'base' => 'ou=testbase,dc=test,dc=com',
      'attribute' => 'cn',
    }}
    connection = Devise::LDAP::Connection.new()
    expect(connection.ldap.base).to eq('ou=testbase,dc=test,dc=com')
  end
end

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
xn_devise_ldap_authenticatable-0.8.5 spec/unit/connection_spec.rb
devise_ldap_authenticatable-0.8.5 spec/unit/connection_spec.rb
devise_ldap_authenticatable-0.8.4 spec/unit/connection_spec.rb
devise_ldap_authenticatable-0.8.3 spec/unit/connection_spec.rb
devise_ldap_norm-0.2.0 spec/unit/connection_spec.rb