Closed pohly closed 1 year ago
ah good catch. looks like an issue in HaveExactElements
- it's calling FailureMessage
on HaveField
when it should instead be reporting the error returned by HaveField
.
i'll need to fix it...
I've fixed HaveExactElement
and released 1.27.8- this should be working correctly now. Please reopen the issue if you're still having trouble with it.
I was experimenting with what happens when I use
HaveField
with a field name that doesn't exist:getNewCalls
returns a slice ofI expected to get some failure message pointing out that there is no
Err2
field (Err
is correct).Instead I got: