Class: Yoda::Equality

Inherits:
ValueExpectation show all
Defined in:
lib/yoda.rb

Instance Attribute Summary

Attributes inherited from ValueExpectation

#value

Instance Method Summary collapse

Methods inherited from ValueExpectation

#initialize

Constructor Details

This class inherits a constructor from Yoda::ValueExpectation

Instance Method Details

#matches(value) ⇒ Object



18
19
20
# File 'lib/yoda.rb', line 18

def matches value
  Yoda.fail_me self.value, "!=", value unless self.value == value
end