Class: RSpec::Mocks::ArgumentMatchers::EqualityProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/mocks/argument_matchers.rb

Instance Method Summary collapse

Constructor Details

#initialize(given) ⇒ EqualityProxy

Returns a new instance of EqualityProxy.



112
113
114
# File 'lib/rspec/mocks/argument_matchers.rb', line 112

def initialize(given)
  @given = given
end

Instance Method Details

#==(expected) ⇒ Object



116
117
118
# File 'lib/rspec/mocks/argument_matchers.rb', line 116

def ==(expected)
  @given == expected
end