Class: HaveAttributesMatcher::HaveOneWithAttributes
- Inherits:
-
HaveAttributes
- Object
- HaveAttributes
- HaveAttributesMatcher::HaveOneWithAttributes
- Defined in:
- lib/have_attributes.rb
Instance Method Summary collapse
Methods inherited from HaveAttributes
Constructor Details
This class inherits a constructor from HaveAttributesMatcher::HaveAttributes
Instance Method Details
#failure_message ⇒ Object
48 49 50 |
# File 'lib/have_attributes.rb', line 48 def "expected to have one record with attributes #{@expected.inspect}" end |
#matches?(target) ⇒ Boolean
42 43 44 45 46 |
# File 'lib/have_attributes.rb', line 42 def matches?(target) target.any? do |record| super(record) end end |