Ravn::SpecHelpers::
WebHelpers module
A collection of test helper functions and classes for web-based systems.
Public Class Methods
Inclusion callback – add request builder methods to including contexts.
Public Instance Methods
Create a new matcher that will expect the response to have a JSON body of the expected_type
. If expected_type
is omitted, any JSON body will be sufficient for a match.
Create a new matcher that will expect the response to have a JSON body which is an Array of Objects (Hashes).
Parse the body of the last response and return it as a Ruby object.