updated cucumber test to use loc= query params

This commit is contained in:
Emil Tin 2012-03-06 14:50:59 +01:00
parent ec9a7f8165
commit 8200f889fb

View File

@ -1,7 +1,7 @@
require 'net/http'
def request_route a,b
@query = "http://localhost:5000/viaroute?start=#{a}&dest=#{b}&output=json&geomformat=cmp"
@query = "http://localhost:5000/viaroute?loc=#{a}&loc=#{b}&output=json&geomformat=cmp"
#log @query
uri = URI.parse @query
Net::HTTP.get_response uri