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



73
74
75
# File 'lib/neo4j/rspec/matchers/has_n.rb', line 73

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

#failure_message(model_name) ⇒ Object



77
78
79
# File 'lib/neo4j/rspec/matchers/has_n.rb', line 77

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

#nameObject



69
70
71
# File 'lib/neo4j/rspec/matchers/has_n.rb', line 69

def name
  :have_many
end