Module: Neo4j::RSpec::Matchers::HasN
Defined Under Namespace
Classes: AssociationMatcher, BaseMatcher, DirectionMatcher, ModelClassesMatcher, OriginMatcher, TypeMatcher
Instance Method Summary
collapse
Instance Method Details
#have_many(association_name) ⇒ Object
213
214
215
|
# File 'lib/neo4j/rspec/matchers/has_n.rb', line 213
def have_many(association_name)
AssociationMatcher.new(association_name, :has_many)
end
|
#have_one(association_name) ⇒ Object
217
218
219
|
# File 'lib/neo4j/rspec/matchers/has_n.rb', line 217
def have_one(association_name)
AssociationMatcher.new(association_name, :has_one)
end
|