Skip to content

Add specs for Method#original_name and #inspect with Kernel methods#1356

Open
sampokuokkanen wants to merge 1 commit into
ruby:masterfrom
sampokuokkanen:original-name-and-inspect
Open

Add specs for Method#original_name and #inspect with Kernel methods#1356
sampokuokkanen wants to merge 1 commit into
ruby:masterfrom
sampokuokkanen:original-name-and-inspect

Conversation

@sampokuokkanen
Copy link
Copy Markdown
Contributor

Adds specs for Method#original_name and #inspect when define_method or alias is used with Kernel#is_a? / Kernel#kind_of? methods that can share an internal implementation in some Ruby implementations. Existing specs didn't catch when introspection leaked the shared internal name.

Also documents inspect's behavior on aliased methods, which wasn't previously covered.

Continuing the work started in #1353 and adding specs that fail at least on JRuby. (the specs added in that PR now pass on JRuby master though!)

Adds specs for Method#original_name and #inspect when define_method
or alias is used with Kernel#is_a? / Kernel#kind_of? methods that
can share an internal implementation in some Ruby implementations.
Existing specs didn't catch when introspection leaked the shared
internal name.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant