Sha256: 66c6599e72b30c249ed1186d80d9f7d0a48c518f1fee1a534ac2d9beb8923375
Contents?: true
Size: 568 Bytes
Versions: 2
Compression:
Stored size: 568 Bytes
Contents
require 'rubygems' require 'riot' require 'kennedy' require 'rack' class StubBackend attr_reader :credentials def authenticate(identifier, password) @credentials = [identifier, password] password == 'bar' end end class StubLDAP attr_reader :bind_as_arguments def initialize(return_val) @return_val = return_val end def bind_as(args) @bind_as_arguments = args @return_val end end class SSLMockRequest < Rack::MockRequest def self.env_for(*args) env = super(*args) env["rack.url_scheme"] = "https" env end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kennedy-1.0.0 | test/teststrap.rb |
kennedy-0.0.1 | test/teststrap.rb |