Project

General

Profile

Actions

Bug #895

closed

MiniTest::Assertions#refute_instance_of should use Object#instance_of? instead Module#===

Added by okkez (okkez _) over 15 years ago. Updated almost 13 years ago.

Status:
Closed
Target version:
ruby -v:
Backport:
[ruby-core:20605]

Description

=begin
see [ruby-dev:37458], r20798 and r20800

Fixnum === 1 # => true
Numeric === 1 # => true
1.kind_of?(Fixnum) # => true
1.kind_of?(Numeric) # => true
1.instance_of?(Fixnum) # => true
1.instance_of?(Numeric) # => false
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0