rspec / rspec-support

Common code needed by the other RSpec gems. Not intended for direct use.
https://rspec.info
MIT License
95 stars 104 forks source link

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

Closed petergoldstein closed 2 years ago

petergoldstein commented 2 years ago

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.

pirj commented 2 years ago

Thank you!