Sha256: d25c883e4eb9a8ccb207b215680f76a4a1edb3f7ebda7361340b1550c414d091
Contents?: true
Size: 515 Bytes
Versions: 2
Compression:
Stored size: 515 Bytes
Contents
module Workarea module Testing module BasicAuthHelper def encode_password(username, password) Base64.encode64("#{username}:#{password}") end def build_request(path, method = "GET") Rack::Request.new( Rack::MockRequest.env_for(path, "REQUEST_METHOD" => method) ) end def build_response(path, method = "GET") Rack::Response.new( Rack::MockRequest.env_for(path, "REQUEST_METHOD" => method) ) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
workarea-basic_auth-1.1.2 | test/factories/workarea/testing/basic_auth_helper.rb |
workarea-basic_auth-1.1.1 | test/factories/workarea/testing/basic_auth_helper.rb |