Class: Yoda::InEquality

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



24
25
26
# File 'lib/yoda.rb', line 24

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