Class: RSpec::JsonMatchers::Expectations::Private::Eq

Inherits:
Core::SingleValueCallableExpectation show all
Defined in:
lib/rspec/json_matchers/expectations/private.rb

Overview

Takes exactly one object Use stored value & ‘==` for checking value

Instance Method Summary collapse

Methods inherited from Core::SingleValueCallableExpectation

[]

Methods inherited from Core::CallableExpectation

[]

Methods inherited from RSpec::JsonMatchers::Expectation

build, build_many

Instance Method Details

#expect?(value) ⇒ Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/rspec/json_matchers/expectations/private.rb', line 27

def expect?(value)
  value == expected_value
end