Module: RoadForest::Testing::MatcherMethods

Defined in:
lib/roadforest/test-support/matchers.rb

Instance Method Summary collapse

Instance Method Details

#be_equivalent_graph(graph, info = nil) ⇒ Object



277
278
279
# File 'lib/roadforest/test-support/matchers.rb', line 277

def be_equivalent_graph(graph, info = nil)
  BeEquivalentGraph.new(graph, info)
end

#be_equivalent_to(list) ⇒ Object



281
282
283
# File 'lib/roadforest/test-support/matchers.rb', line 281

def be_equivalent_to(list)
  ListEquivalence.new(list)
end

#have_xpath(xpath, value = true, trace = nil) ⇒ Object



269
270
271
# File 'lib/roadforest/test-support/matchers.rb', line 269

def have_xpath(xpath, value = true, trace = nil)
  HaveXpath.new(xpath, value, trace || debug)
end

#match_query(pattern = nil, &block) ⇒ Object



273
274
275
# File 'lib/roadforest/test-support/matchers.rb', line 273

def match_query(pattern = nil, &block)
  MatchesQuery.new(pattern, &block)
end

#produce(expected, info) ⇒ Object



265
266
267
# File 'lib/roadforest/test-support/matchers.rb', line 265

def produce(expected, info)
  Produces.new(expected, info)
end