Skip to content

Use a better and more reliable check for whether a method is the same as Class#new

Created by: eregon

The added test would fail without the change. This also helps for TruffleRuby support (https://github.com/rspec/rspec-metagem/issues/68), as TruffleRuby does not plan to replicate that CRuby inconsistency/bug (https://bugs.ruby-lang.org/issues/18729).

Merge request reports