Sha256: 59378fb3b3fe271cd95a143e2694ae4a3bbbee872bc8f95c2d391c31ef23b468
Contents?: true
Size: 160 Bytes
Versions: 2
Compression:
Stored size: 160 Bytes
Contents
module Helpers def app @app ||= Rack::API end def basic_auth(username, password) "Basic " + Base64.encode64("#{username}:#{password}") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rack-api-0.1.1 | spec/support/helpers.rb |
rack-api-0.1.0 | spec/support/helpers.rb |