support comments in test tables

This commit is contained in:
Emil Tin 2013-01-12 19:15:08 +01:00 committed by DennisOSRM
parent e6e5626a2c
commit 86d7442a5f

View File

@ -46,6 +46,9 @@ When /^I route I should get$/ do |table|
if table.headers.include? 'turns' if table.headers.include? 'turns'
got['turns'] = turns got['turns'] = turns
end end
if table.headers.include? '#' # comment column
got['#'] = row['#'] # copy value so it always match
end
end end
ok = true ok = true