Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Guard undefs and use an object that implements :=~ in all Ruby versions for specs #526

Merged
merged 1 commit into from
Jan 10, 2022
Merged

Guard undefs and use an object that implements :=~ in all Ruby versions for specs #526

merged 1 commit into from
Jan 10, 2022

Conversation

petergoldstein
Copy link
Contributor

@petergoldstein petergoldstein commented Jan 9, 2022

Starting in Ruby 3.2 arrays no longer implement =~. So add a respond_to? in the proxy definition for hygiene and use a different object (a string) that does implement that method.

@JonRowe JonRowe merged commit e7a7270 into rspec:main Jan 10, 2022
@pirj
Copy link
Member

pirj commented Jan 10, 2022

Thank you!

JonRowe added a commit that referenced this pull request Jan 11, 2022
Guard undefs and use an object that implements :=~ in all Ruby versions for specs
JonRowe added a commit that referenced this pull request Jan 11, 2022
Guard undefs and use an object that implements :=~ in all Ruby versions for specs
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants