Sha256: b6ea88c732331706929df1db12bceefe4c1099250f7138f028cd77d09b2d601c
Contents?: true
Size: 528 Bytes
Versions: 1
Compression:
Stored size: 528 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'spec_helper')) describe Castronaut::Adapters::Ldap::User do describe "authenticate" do it "attempts to authenticate the user" do connection = stub_everything Net::LDAP.stub!(:new).and_return(connection) connection.should_receive(:authenticate).with('cn=bob, dc=example, dc=com, ', '1234').and_return(nil) Castronaut::Adapters::Ldap::User.authenticate('cn=bob, dc=example, dc=com', '1234') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
relevance-castronaut-0.4.1 | spec/castronaut/adapters/ldap/user_spec.rb |