cuke: check for invalid expectation formats
This commit is contained in:
parent
8b1f09d302
commit
c5893ef6e8
@ -60,6 +60,8 @@ Then /^routability should be$/ do |table|
|
|||||||
output_row[direction] = "#{result[direction][:time]}s"
|
output_row[direction] = "#{result[direction][:time]}s"
|
||||||
when /^\d+ km\/h/
|
when /^\d+ km\/h/
|
||||||
output_row[direction] = "#{result[direction][:speed]} km/h"
|
output_row[direction] = "#{result[direction][:speed]} km/h"
|
||||||
|
else
|
||||||
|
raise "*** Unknown expectation format: #{want}"
|
||||||
end
|
end
|
||||||
|
|
||||||
if FuzzyMatch.match output_row[direction], want
|
if FuzzyMatch.match output_row[direction], want
|
||||||
|
Loading…
Reference in New Issue
Block a user