diff options
| author | Teddy Wing | 2018-03-12 15:25:50 +0100 |
|---|---|---|
| committer | Luc Donnet | 2018-03-23 17:16:43 +0100 |
| commit | b1fb2030fe15bf4d778c7c19f941c8209e40281e (patch) | |
| tree | fe6595e3264bb69fe04068b08cf2fc76eeae85b4 /spec/javascript | |
| parent | 7cab3f1af51473e9bff3c32279c97f59ae69c50e (diff) | |
| download | chouette-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
