Class: RoadForest::Testing::StatementsFromGraph
- Inherits:
-
Object
- Object
- RoadForest::Testing::StatementsFromGraph
- Defined in:
- lib/roadforest/test-support/matchers.rb
Instance Method Summary collapse
-
#initialize(graph) ⇒ StatementsFromGraph
constructor
A new instance of StatementsFromGraph.
- #that_match_query(query) ⇒ Object (also: #that_match, #that_match_pattern)
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 |