aboutsummaryrefslogtreecommitdiffstats
path: root/spec/support/with_commit.rb
diff options
context:
space:
mode:
authorTeddy Wing2018-03-12 15:25:50 +0100
committerTeddy Wing2018-03-14 16:38:40 +0100
commit33c2dad6ba2483a4c71d7248979bf9d82a65f234 (patch)
tree20a119ff082c2bc58b190d1394dea73e2526a4e7 /spec/support/with_commit.rb
parente558625cd5e3cad60757a537320eb15f1c045cd0 (diff)
downloadchouette-core-33c2dad6ba2483a4c71d7248979bf9d82a65f234.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/support/with_commit.rb')
0 files changed, 0 insertions, 0 deletions