test for mode flag (todo)

This commit is contained in:
Emil Tin
2013-03-18 15:37:10 +01:00
parent 46c3ce0e34
commit 081831e6ea
4 changed files with 129 additions and 1 deletions
+4
View File
@@ -15,6 +15,7 @@ When /^I route I should get$/ do |table|
bearings = bearing_list json['route_instructions']
compasses = compass_list json['route_instructions']
turns = turn_list json['route_instructions']
modes = mode_list json['route_instructions']
end
end
@@ -46,6 +47,9 @@ When /^I route I should get$/ do |table|
if table.headers.include? 'turns'
got['turns'] = turns
end
if table.headers.include? 'modes'
got['modes'] = modes
end
if table.headers.include? '#' # comment column
got['#'] = row['#'] # copy value so it always match
end