aboutsummaryrefslogtreecommitdiffstats
path: root/spec/javascript
diff options
context:
space:
mode:
authorTeddy Wing2018-03-12 15:25:50 +0100
committerLuc Donnet2018-03-23 17:16:43 +0100
commitb1fb2030fe15bf4d778c7c19f941c8209e40281e (patch)
treefe6595e3264bb69fe04068b08cf2fc76eeae85b4 /spec/javascript
parent7cab3f1af51473e9bff3c32279c97f59ae69c50e (diff)
downloadchouette-core-b1fb2030fe15bf4d778c7c19f941c8209e40281e.tar.bz2
TomTom::Batch: Extract code to `#extract_costs_to_way_costs!`
Extract some code from `#batch` to allow us to test the part that takes distance and time values from the response JSON and put fill them into `WayCost`s. In order for the test to work, had to add an `#==` method to `WayCost` and make `distance` and `time` accessors. The JSON file fixture is a copy of a response from the TomTom `/batch` API. The file is pretty big. I'm not sure if maybe I should condense it for the sake of test performance. Refs #6095
Diffstat (limited to 'spec/javascript')
0 files changed, 0 insertions, 0 deletions