Class: RoadForest::Testing::StatementsFromGraph

Inherits:
Object
  • Object
show all
Defined in:
lib/roadforest/test-support/matchers.rb

Instance Method Summary collapse

Constructor Details

#initialize(graph) ⇒ StatementsFromGraph

Returns a new instance of StatementsFromGraph.



66
67
68
# File 'lib/roadforest/test-support/matchers.rb', line 66

def initialize(graph)
  @graph = graph
end

Instance Method Details

#that_match_query(query) ⇒ Object Also known as: that_match, that_match_pattern



70
71
72
# File 'lib/roadforest/test-support/matchers.rb', line 70

def that_match_query(query)
  @graph.query(query).to_a
end