Sha256: d4f537c4973849c174963966edb8a533e0658c2205403f9b8f1319d0476ba532
Contents?: true
Size: 270 Bytes
Versions: 2
Compression:
Stored size: 270 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 end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
eeny-meeny-2.0.0 | spec/mock_rack_app.rb |
eeny-meeny-1.0.0 | spec/mock_rack_app.rb |