Project

General

Profile

Actions

Bug #895

closed

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

Added by okkez (okkez _) about 16 years ago. Updated over 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 #1

Updated by okkez (okkez _) about 16 years ago

  • Assignee set to zenspider (Ryan Davis)

=begin

=end

Actions #2

Updated by yugui (Yuki Sonoda) about 16 years ago

  • Due date set to 12/24/2008
  • Target version set to 1.9.1 Release Candidate

=begin

=end

Actions #3

Updated by yugui (Yuki Sonoda) almost 16 years ago

  • Target version changed from 1.9.1 Release Candidate to 1.9.2

=begin
Can I regards this as a bug of miniunit? I think it is because miniunit would be compatible with test/unit.
=end

Actions #4

Updated by zenspider (Ryan Davis) almost 16 years ago

  • Status changed from Open to Closed

=begin

=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0