Class | Rack::MockResponse
In: | lib/rack/mock.rb
Parent: | Rack::Response

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

### Methods

=~ body empty? match new

### Attributes

errors | [RW] | Errors
original_headers | [R] | Headers

### Public Class methods

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

### Public Instance methods

=~(other)
body()
empty?()
match(other)

[Validate]