Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Hash#fetch with incorrect key throws different error messages but MRI #1633
Yes, this causes problems in some specs/tests such as in FactoryBot/hanami/dry-rb.
Example from FactoryBot specs
TruffleRuby would follow MRI in this case.
changed the title
Hash#fetch with incorrect key throw different error messages but MRI
Mar 24, 2019
Thanks for the report. I'll add a new spec and make our message match MRI's.
I know many libraries are still targeting versions older than Ruby 2.5. For projects that can do feature detection or inspect the Ruby version, Ruby 2.5 enhanced