rspec-expectations icon indicating copy to clipboard operation
rspec-expectations copied to clipboard

Show attribute details when composed have_attributes fails

Open nellirx opened this issue 3 years ago • 0 comments

As requested in #759

For example expect([person]).to match [have_attributes(:age => 10)]

Before expected [#{object_inspect person}] to match [(have attributes {:age => 10})]

After expected [#{object_inspect person}] to match [(have attributes {:age => 10} but had attributes {:age => 33})]

nellirx avatar Apr 30 '22 19:04 nellirx