From af4e70fc1c0ef7d74429b0a6507182a6b34ec721 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 12 Mar 2018 11:46:03 +0100 Subject: Revert "TomTom: Add method for `calculateRoute` endpoint" This reverts commit f28a4b2c5b348bc12b455aa0cd76a9513103aea7. As stated in that commit, I'm going to use the `/batch` endpoint instead of `/calculateRoute` because I know that's already working. --- spec/lib/tom_tom_spec.rb | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'spec') diff --git a/spec/lib/tom_tom_spec.rb b/spec/lib/tom_tom_spec.rb index c6d387b9f..57f22d26a 100644 --- a/spec/lib/tom_tom_spec.rb +++ b/spec/lib/tom_tom_spec.rb @@ -22,23 +22,4 @@ RSpec.describe TomTom do ]) end end - - describe "#convert_way_costs_for_calculate_route" do - it "turns WayCost points into a string of colon-separated coordinates" do - way_costs = [ - WayCost.new( - departure: Geokit::LatLng.new(48, 2), - arrival: Geokit::LatLng.new(46, 3) - ), - WayCost.new( - departure: Geokit::LatLng.new(46, 3), - arrival: Geokit::LatLng.new(47.2, 3.9) - ) - ] - - expect( - tomtom.convert_way_costs_for_calculate_route(way_costs) - ).to eq('48,2:46,3:47.2,3.9') - end - end end -- cgit v1.2.3