Bug #895

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

Added by okkez (okkez _) over 3 years ago. Updated about 1 year ago.

[ruby-core:20605]
Status:Closed Start date:12/17/2008
Priority:Normal Due date:12/24/2008
Assignee:zenspider (Ryan Davis) % Done:

0%

Category:lib
Target version:1.9.2
ruby -v:

Description

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

History

Updated by okkez (okkez _) over 3 years ago

  • Assignee set to zenspider (Ryan Davis)

Updated by yugui (Yuki Sonoda) over 3 years ago

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

Updated by yugui (Yuki Sonoda) over 3 years ago

  • Target version changed from 1.9.1 Release Candidate to 1.9.2
Can I regards this as a bug of miniunit?  I think it is because miniunit would be compatible with test/unit.

Updated by zenspider (Ryan Davis) over 3 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF