Class: Easytest::Matcher::HaveAttributes
- Inherits:
-
Base
- Object
- Base
- Easytest::Matcher::HaveAttributes
show all
- Defined in:
- lib/easytest/matcher/have_attributes.rb
Instance Attribute Summary
Attributes inherited from Base
#actual, #expected, #negate
Instance Method Summary
collapse
Methods inherited from Base
#initialize, #match!
Instance Method Details
#match? ⇒ Boolean
4
5
6
7
8
|
# File 'lib/easytest/matcher/have_attributes.rb', line 4
def match?
expected.all? do |name, value|
actual.send(name) == value
end
end
|
#message ⇒ Object
10
11
12
|
# File 'lib/easytest/matcher/have_attributes.rb', line 10
def message
"have attributes"
end
|