Sha256: 8db44bc5f5d4dcc7b1e970d403e997d15bdf583ce98d1de09d8469a44907ffd5
Contents?: true
Size: 443 Bytes
Versions: 61
Compression:
Stored size: 443 Bytes
Contents
module Rack module Test class MockDigestRequest # :nodoc: def initialize(params) @params = params end def method_missing(sym) if @params.key? k = sym.to_s return @params[k] end super end def method @params['method'] end def response(password) Rack::Auth::Digest::MD5.new(nil).send :digest, self, password end end end end
Version data entries
61 entries across 46 versions & 12 rubygems