rspec/rspec-expectations — pull request #669 by waterlink (2014-10-11 06:28:55+00:00)
Title: make have_attributes matcher diffable (in some cases)

fixes #667
related to #668

My attempt to make `have_attributes` matcher diffable:

- diffable, when failed because of different values
- diffable, when used with matchers in expected values and when failed because actual values don't match
- not diffable, when negated
- not diffable, when `respond_to` failure

Regarding to this comment https://github.com/rspec/rspec-expectations/pull/668#issuecomment-58739468 I would like to add spec specifically showing how diffing works when multiple composable matchers are used as expected values.

Feedback is welcome. Especially in spec suite for this.

Is it needed to change anything in cuke for this feature to show that this matcher has diff output for users?

/cc @myronmarston @JonRowe