Skip to content

Fix failure case for chained matchers#288

Merged
jas14 merged 5 commits into
mainfrom
286-undefined-expected
Jun 18, 2025
Merged

Fix failure case for chained matchers#288
jas14 merged 5 commits into
mainfrom
286-undefined-expected

Conversation

@jas14

@jas14 jas14 commented Jun 18, 2025

Copy link
Copy Markdown
Collaborator

Fixes #286.

SuperDiff overrides the built-in RaiseError matcher to report that it is diffable? in most cases. RSpec accordingly assumes that it defines #expected. This issue may have existed since SuperDiff 0.2.0 and RSpec 3.2.0.

This PR monkey-patches the #expected assumption, much in the same way that we already do for #handle_failure.

@github-actions

Copy link
Copy Markdown
@github-actions

Copy link
Copy Markdown
@jas14 jas14 merged commit a85ecac into main Jun 18, 2025
60 checks passed
@jas14 jas14 deleted the 286-undefined-expected branch June 18, 2025 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant