diff options
| author | Teddy Wing | 2017-05-04 17:01:31 +0200 |
|---|---|---|
| committer | Teddy Wing | 2017-05-04 17:11:00 +0200 |
| commit | 32bc450f332b457ce7aca208a332876672df1bc1 (patch) | |
| tree | de2d8eec52946a4133160d787884cc0a8565ccbe /spec/javascripts | |
| parent | 48b9ab1d9db508b658f0fee9b492bc058d99ab31 (diff) | |
| download | chouette-core-32bc450f332b457ce7aca208a332876672df1bc1.tar.bz2 | |
vehicle_journey_spec.rb: #with_stops should sort journeys missing stops
If a journey is missing one or more stops at the beginning of the route,
it should be sorted by the first stop it stops at.
Given these journeys:
| 1 | 2 | 3
-------+-------+-------+------
Stop 1 | 10:00 | | 10:15
Stop 2 | 10:10 | 10:12 | 10:25
Stop 3 | 10:20 | 10:18 | 10:35
Journey should appear in between 1 and 3 because its first stop is
between 10:00 and 10:15.
Move the `initialize_stop_times` helper function outside of the first
test in this `describe` so we can use it again in this test.
Refs #3268
Diffstat (limited to 'spec/javascripts')
0 files changed, 0 insertions, 0 deletions
