Repository navigation
Releases
Releases · llwebconsulting/rspec-rest
v0.5.0
Immutable
release. Only release title and notes can be modified.
What's Changed
- Allow expect_json_at symbol shorthand for top-level keys by @carltonsmith in #55
- Add contract_with matcher helper for contract value overrides by @carltonsmith in #56
- Add raw response body expectation helpers by @carltonsmith in #57
- Prepare 0.5.0 release metadata by @carltonsmith in #58
Full Changelog: v0.4.0...v0.5.0
v0.4.0
Immutable
release. Only release title and notes can be modified.
What's Changed
- Support keyword path syntax in verb DSL by @carltonsmith in #50
- Prepare 0.4.0 release metadata by @carltonsmith in #51
Full Changelog: v0.3.0...v0.4.0
v0.3.0
Immutable
release. Only release title and notes can be modified.
Added
contract(:name)lookup helper for matcher composition in examples.- Internal deprecation utility:
RSpec::Rest::Deprecation.warn(key:, message:)with once-per-key emission. - Keyword request description support on verbs:
get(path, description: "...") { ... }(and same for other verbs).
Changed
- Failure-time
curloutput now uses$API_AUTH_TOKENplaceholders for redacted auth-like headers. AuthorizationandProxy-Authorizationscheme prefixes are preserved in redactedcurloutput (for exampleBasic,Digest).- README examples now prefer
contract(:name)and keyword request descriptions. - Added README RuboCop compatibility guidance for
Rails/HttpPositionalArgumentsandRSpec/EmptyExampleGroup.
Deprecated (removal target: 1.0)
expect_json_contract(name)-> usecontract(:name).- Positional verb descriptions (for example
get(path, "description")) -> usedescription:keyword.
v0.2.0
Immutable
release. Only release title and notes can be modified.
Added
- JSON array item expectation helpers:
expect_json_first(expected = nil, &block)expect_json_item(index, expected = nil, &block)expect_json_last(expected = nil, &block)
- Optional behavior descriptions on verb DSL calls:
get(path, description = nil) { ... }(and same for other verbs)
- Full-route example naming support in DSL output (composed from
base_path+ resource path + endpoint path). - Shared path composition utility used by both request execution and example naming.
Changed
- README examples and expectation helper docs updated for:
- Ruby-style JSON item helpers
- Optional verb descriptions and full-route example names
Fixed
expect_json_itemnow validates index type and reports non-integer indexes via actionable expectation failures.- JSON value assertion semantics are centralized across
expect_json,expect_json_at, and JSON item helpers to reduce drift. - Unknown/invalid JSON item and contract expectation failures continue to include enriched request/response/curl diagnostics.