Class: Matchy::Expectations::OperatorExpectation

Inherits:
Object
  • Object
show all
Includes:
Test::Unit::Assertions
Defined in:
lib/matchy/built_in/operator_expectations.rb

Overview

Class to handle operator expectations.

Examples

13.should == 13
"hello".length.should_not == 2

Instance Method Summary collapse

Constructor Details

#initialize(receiver, match) ⇒ OperatorExpectation

Returns a new instance of OperatorExpectation.



13
14
15
# File 'lib/matchy/built_in/operator_expectations.rb', line 13

def initialize(receiver, match)
  @receiver, @match = receiver, match
end