jsonapi-rb / jsonapi-rspec

RSpec matchers for JSON:API spec
https://rubygems.org/gems/jsonapi-rspec
MIT License
123 stars 24 forks source link

Modify have_meta to include an exactly chain #22

Closed sa73917 closed 4 years ago

sa73917 commented 4 years ago

What is the current behavior?

the have_meta matcher only provides exact match functionality

What is the new behavior?

the have_meta matcher now operates as an includes matcher, with an optional exactly chain to force an exact match

Checklist

Please make sure the following requirements are complete:

stas commented 4 years ago

Sweet! @sa73917 would you mind updating the README file to include the example with .exactly please? Either way, I'm happy to merge it.

sa73917 commented 4 years ago

Sweet! @sa73917 would you mind updating the README file to include the example with .exactly please? Either way, I'm happy to merge it.

Sorry @stas - was working on about three things at once :-). README now has an exactly example.