diff options
| author | Zog | 2018-01-10 18:24:54 +0100 |
|---|---|---|
| committer | Zog | 2018-01-10 18:30:45 +0100 |
| commit | c8a2e2ce194d3d051bb96522c40c4d34392bdf8e (patch) | |
| tree | c27486119d91687fa9a5dd31b2c1363122d49bd9 /spec/support | |
| parent | 5c3abf69c50f00e0caab1517be2beccca10e635b (diff) | |
| download | chouette-core-c8a2e2ce194d3d051bb96522c40c4d34392bdf8e.tar.bz2 | |
Refs #5535 @2H; Automatically fill VJs tilmes when possible
Diffstat (limited to 'spec/support')
| -rw-r--r-- | spec/support/journey_pattern_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/journey_pattern_helper.rb b/spec/support/journey_pattern_helper.rb index d16120acf..3ba1c501b 100644 --- a/spec/support/journey_pattern_helper.rb +++ b/spec/support/journey_pattern_helper.rb @@ -4,7 +4,7 @@ module Support costs = {} (journey_pattern.stop_points.size - 1).times do |i| start, finish = journey_pattern.stop_points[i..i+1] - costs["#{start.id}-#{finish.id}"] = { + costs["#{start.stop_area_id}-#{finish.stop_area_id}"] = { distance: (distance.respond_to?(:call) ? distance.call(i) : distance), time: (time.respond_to?(:call) ? time.call(i) : time) } |
