class Neo4j::RSpec::Matchers::HasN::With::ModelClassMatcher

Public Instance Methods

description() click to toggle source
# File lib/neo4j/rspec/matchers/has_n.rb, line 50
def description
  "with #{expected.join(', ')} model class"
end
match(association) click to toggle source
# File lib/neo4j/rspec/matchers/has_n.rb, line 45
def match(association)
  actual = association.target_classes.map { |m| m.to_s.to_sym }
  actual & expected == actual
end