Class: HaveAttributesMatcher::ReturnValues
- Inherits:
-
HaveAttributes
- Object
- HaveAttributes
- HaveAttributesMatcher::ReturnValues
- Defined in:
- lib/have_attributes.rb
Instance Method Summary collapse
Methods inherited from HaveAttributes
#differ, #failure_message, #initialize
Constructor Details
This class inherits a constructor from HaveAttributesMatcher::HaveAttributes
Instance Method Details
#matches?(target) ⇒ Boolean
28 29 30 31 |
# File 'lib/have_attributes.rb', line 28 def matches?(target) differ.use_return = true super(@expected.keys.inject({}) { |hash, key| hash.merge!(key => target.send(key)) }) end |