Home / Explore

RSpec JSON Expectations

This project appears to have been a Ruby gem that added JSON matchers to RSpec, most notably an include_json style matcher for checking that a JSON response contains certain keys and values without asserting on the whole document. That approach is popular for API tests, where responses carry timestamps and IDs that change on every run.

Its original feature documentation is no longer published here. The pages below are independent guides to the topics it covered, written for this archive. Code samples show the general technique and are not a reference for any particular gem version.

Guides

Explore the archive