Sha256: 868c738f69106739e6178c8b18b8c4b234b760856ccf72cc3412984ce17b9c42
Contents?: true
Size: 404 Bytes
Versions: 6
Compression:
Stored size: 404 Bytes
Contents
require 'test_helper' class TestAuthAdapter < Test::Unit::TestCase class FakeSocket def initialize(*args) end end def test_undefined_auth_adapter conn = Net::LDAP::Connection.new(host: 'ldap.example.com', port: 379, :socket_class => FakeSocket) assert_raise Net::LDAP::AuthMethodUnsupportedError, "Unsupported auth method (foo)" do conn.bind(method: :foo) end end end
Version data entries
6 entries across 6 versions & 1 rubygems