Skip to content

Commit 847b621

Browse files
committed
Update docs
1 parent 29b7e36 commit 847b621

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/contributors/architecture/how-super-diff-works.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ or when a matcher whose `#does_not_match?` method returns `true`
3939
is passed to `expect(...).not_to`
4040
RSpec will call the `RSpec::Expectations::ExpectationHelper#handle_failure` method,
4141
which will call `RSpec::Expectations.fail_with`.
42-
This method will use `RSpec::Matchers::ExpectedsForMultipleDiffs`
42+
This method will use `RSpec::Matchers::MultiMatcherDiff`
43+
(or in RSpec < 3.13.0, `RSpec::Matchers::ExpectedsForMultipleDiffs`)
4344
and the differ object that `RSpec::Expectations.differ` returns
4445
to generate a diff,
4546
combining it with the failure message from the matcher,
@@ -89,7 +90,7 @@ Here are all of the places that SuperDiff patches RSpec:
8990
as it interferes with the previous patches)
9091
- `RSpec::Support::ObjectFormatter`
9192
(to use SuperDiff's object inspection logic)
92-
- `RSpec::Matchers::ExpectedsForMultipleDiffs`
93+
- `RSpec::Matchers::ExpectedsForMultipleDiffs` and `RSpec::Matchers::MultiMatcherDiff`
9394
(to add a key above the diff,
9495
add spacing around the diff,
9596
and colorize the word "Diff:")

0 commit comments

Comments
 (0)