Closed mkamensky closed 4 years ago
@mkamensky could you please help us understand how is this different from the have_attributes
matcher?
@mkamensky could you please help us understand how is this different from the
have_attributes
matcher?
As far as I understand, have_attributes
checks that all given attributes exist. This one checks that there are no other attributes included (my use case authorization, I want to make sure that only the permitted attributes are returned).
@mkamensky I don't think we should introduce a new matcher. Let's use the existing one and extend it's functionality using a parameter/chained call. If that's ok with you and you want to submit a PR, I'll be happy to take a look. Alternatively, I'll be looking into #4 and will review this one along with it.
Superseded by #14
Added another matcher to check that all attributes are included in the given list