Class

Rack::MockResponse

Inheritance
< Object
Included Modules
Response::Helpers

Rack::MockResponse provides useful helpers for testing your apps. Usually, you don‘t create the MockResponse on your own, but use MockRequest.

Attributes

Name Visibility R/W Description
body public R Body
errors public RW Errors
headers public R Headers
original_headers public R Headers
status public R Status

Methods

Class

Visibility Signature
public new (status, headers, body, errors=StringIO.new(""))

Instance

Visibility Signature
public =~ (other)
public [] (field)
public match (other)

Class Method Detail

new(status, headers, body, errors=StringIO.new(""))

Instance Method Detail

=~(other)

[](field)

match(other)