move cuke origin to 1,1, add origin tests

This commit is contained in:
Emil Tin
2012-09-27 16:31:09 +02:00
parent bd6f2db1d1
commit f9279a3646
3 changed files with 77 additions and 3 deletions
+2 -2
View File
@@ -217,11 +217,11 @@ When /^I route I should get$/ do |table|
if table.headers.include? 'route'
got['route'] = (instructions || '').strip
if table.headers.include? 'distance'
got['distance'] = instructions ? json['route_summary']['total_distance'].to_s : nil
got['distance'] = instructions ? json['route_summary']['total_distance'].to_s : ''
end
if table.headers.include? 'time'
raise "*** time must be specied in seconds. (ex: 60s)" unless row['time'] =~ /\d+s/
got['time'] = instructions ? "#{json['route_summary']['total_time'].to_s}s" : nil
got['time'] = instructions ? "#{json['route_summary']['total_time'].to_s}s" : ''
end
if table.headers.include? 'bearing'
got['bearing'] = bearings