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.



253
254
255
# File 'lib/roadforest/test-support/matchers.rb', line 253

def initialize(graph)
  @graph = graph
end

Instance Method Details

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



257
258
259
# File 'lib/roadforest/test-support/matchers.rb', line 257

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