support testing of turn directions

This commit is contained in:
Emil Tin
2012-12-09 18:21:33 +01:00
parent 86a5bbac51
commit e41d52570e
3 changed files with 144 additions and 1 deletions
+4
View File
@@ -204,6 +204,7 @@ When /^I route I should get$/ do |table|
instructions = way_list json['route_instructions']
bearings = bearing_list json['route_instructions']
compasses = compass_list json['route_instructions']
turns = turn_list json['route_instructions']
end
end
@@ -232,6 +233,9 @@ When /^I route I should get$/ do |table|
if table.headers.include? 'compass'
got['compass'] = compasses
end
if table.headers.include? 'turns'
got['turns'] = turns
end
end
ok = true