Class: Neo4j::RSpec::Matchers::HasN::With::OriginMatcher
- Inherits:
-
Base
- Object
- Base
- Neo4j::RSpec::Matchers::HasN::With::OriginMatcher
show all
- Defined in:
- lib/neo4j/rspec/matchers/has_n.rb
Instance Attribute Summary
Attributes inherited from Base
#expected
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#description ⇒ Object
29
30
31
|
# File 'lib/neo4j/rspec/matchers/has_n.rb', line 29
def description
"with #{expected} origin"
end
|
#match(association) ⇒ Object
25
26
27
|
# File 'lib/neo4j/rspec/matchers/has_n.rb', line 25
def match(association)
expected == association.relationship_type
end
|