Method: Test::Unit::TestCase#==

Defined in:
lib/test/unit/testcase.rb

#==(other) ⇒ Object

It’s handy to be able to compare TestCase instances.



519
520
521
522
523
524
# File 'lib/test/unit/testcase.rb', line 519

def ==(other)
  return false unless other.kind_of?(self.class)
  return false unless @method_name == other.method_name
  return false unless data_label == other.data_label
  self.class == other.class
end