thoughtbot / shoulda-matchers

Simple one-liner tests for common Rails functionality
https://matchers.shoulda.io
MIT License
3.51k stars 912 forks source link

fix: catch ruby3.3 format NoMethodError message #1579

Closed mtasaka closed 10 months ago

mtasaka commented 11 months ago

ruby3.3.0dev changes the error messages on NoMethodError with the following commit / issue:

https://github.com/ruby/ruby/pull/6950 https://bugs.ruby-lang.org/issues/18285

So to catch this new NoMethodError message, modify regex accordingly.

Fixes #1578 .