Fixed the broken ruby-head NoMethodError spec. #2193
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
- What is it good for
Fix the broken ruby-head continuous integration build (latest master).
- What I did
Looks like ruby 3.1.0-dev adds a more verbose exception message with the raising line as a suffix.
So I just converted the
raise_error
message from a string to a regexp to ignore the new suffix.- A picture of a cute animal (not mandatory but encouraged)