fixing tests to reflect new r-tree data structure

This commit is contained in:
Dennis Luxen
2013-06-26 09:34:01 -04:00
parent 648f9c9723
commit f13694b539
6 changed files with 43 additions and 39 deletions
+5 -1
View File
@@ -26,7 +26,11 @@ Then /^routability should be$/ do |table|
if got[direction].empty? == false
route = way_list json['route_instructions']
if route != "w#{i}"
got[direction] = "testing w#{i}, but got #{route}!?"
if row[direction].empty? == true
got[direction] = want
else
got[direction] = "testing w#{i}, but got #{route}!?"
end
elsif want =~ /^\d+s/
time = json['route_summary']['total_time']
got[direction] = "#{time}s"