cuke: test travel time of individual instructions
This commit is contained in:
@@ -46,6 +46,8 @@ When /^I route I should get$/ do |table|
|
||||
compasses = compass_list json['route_instructions']
|
||||
turns = turn_list json['route_instructions']
|
||||
modes = mode_list json['route_instructions']
|
||||
times = time_list json['route_instructions']
|
||||
distances = distance_list json['route_instructions']
|
||||
end
|
||||
end
|
||||
|
||||
@@ -90,6 +92,12 @@ When /^I route I should get$/ do |table|
|
||||
if table.headers.include? 'modes'
|
||||
got['modes'] = modes
|
||||
end
|
||||
if table.headers.include? 'times'
|
||||
got['times'] = times
|
||||
end
|
||||
if table.headers.include? 'distances'
|
||||
got['distances'] = distances
|
||||
end
|
||||
if table.headers.include? '#' # comment column
|
||||
got['#'] = row['#'] # copy value so it always match
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user