Class: Neo4j::RSpec::Matchers::HasN::HaveMany

Inherits:
Object
  • Object
show all
Defined in:
lib/neo4j/rspec/matchers/has_n.rb

Instance Method Summary collapse

Instance Method Details

#description(model_name) ⇒ Object



83
84
85
# File 'lib/neo4j/rspec/matchers/has_n.rb', line 83

def description(model_name)
  "have many #{model_name}"
end

#failure_message(model_name) ⇒ Object



87
88
89
# File 'lib/neo4j/rspec/matchers/has_n.rb', line 87

def failure_message(model_name)
  "expected the #{model_name} model to have many #{name}"
end

#nameObject



79
80
81
# File 'lib/neo4j/rspec/matchers/has_n.rb', line 79

def name
  :have_many
end