rspec-expectations
rspec-expectations copied to clipboard
Show attribute details when composed have_attributes fails
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})]