Sha256: 2df074aa2401f2d809653030bc687d0e84a2a5b77761249f4b3f6b599308fffc
Contents?: true
Size: 346 Bytes
Versions: 7
Compression:
Stored size: 346 Bytes
Contents
class MockRackApp attr_reader :request_body def initialize @request_headers = {} end def call(env) @env = env @request_body = env['rack.input'].read [200, {'Content-Type' => 'text/plain'}, ['OK']] end def [](key) @env[key] end alias_method :fetch, :[] def []=(key,value) @env[key] = value end end
Version data entries
7 entries across 7 versions & 1 rubygems