Class: Neo4j::RSpec::Matchers::HasN::With::DirectionMatcher
- Inherits:
-
Base
- Object
- Base
- Neo4j::RSpec::Matchers::HasN::With::DirectionMatcher
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
19
20
21
|
# File 'lib/neo4j/rspec/matchers/has_n.rb', line 19
def description
"with #{expected} direction"
end
|
#match(association) ⇒ Object
15
16
17
|
# File 'lib/neo4j/rspec/matchers/has_n.rb', line 15
def match(association)
expected == association.direction
end
|