Sha256: fb95329faa8c76e71e5522fa697a6f2e32c4ec7d47f020032dcf368e3bbb39fd
Contents?: true
Size: 419 Bytes
Versions: 2
Compression:
Stored size: 419 Bytes
Contents
require 'test_helper' class TestAuthAdapter < Test::Unit::TestCase def test_undefined_auth_adapter flexmock(TCPSocket).should_receive(:new).ordered.with('ldap.example.com', 379).once.and_return(nil) conn = Net::LDAP::Connection.new(host: 'ldap.example.com', port: 379) assert_raise Net::LDAP::AuthMethodUnsupportedError, "Unsupported auth method (foo)" do conn.bind(method: :foo) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
net-ldap-0.12.1 | test/test_auth_adapter.rb |
net-ldap-0.12.0 | test/test_auth_adapter.rb |