ruby / spec

The Ruby Spec Suite aka ruby/spec
MIT License
588 stars 384 forks source link

Add spec for compare_by_identity behaviour of Hash#replace #1160

Closed herwinw closed 1 month ago

herwinw commented 1 month ago

The spec has originally been written by @seven1m in https://github.com/natalie-lang/natalie/pull/2104

This change does include a cleanup of the specs of Hash#replace: it used a shared spec, but this was the only user of this spec. This shared spec has been moved inline into the main file.

andrykonchin commented 1 month ago

Thank you!