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