ignore 'You have reached your destination' when parsing route instructions in cucumber tests

This commit is contained in:
Emil Tin 2012-04-12 16:47:43 +02:00
parent 03deda313a
commit c669d46efb

View File

@ -61,7 +61,7 @@ def route_status response
end
def way_list instructions
instructions.
instructions.reject { |r| r[0]=='You have reached your destination' }.
map { |r| r[1] }.
map { |r| r=="" ? '""' : r }.
join(',')