aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlban Peignier2018-04-22 17:46:50 +0200
committerAlban Peignier2018-04-22 17:46:50 +0200
commit8eacb2238bb70f774f89d4cad4311725d826b2a0 (patch)
treec1d688bd3d3551ec57f2c2c8a7e0cb4986a554d3
parentf1ebe3db0b75d68de53c8e74a12f0a948e48e4b1 (diff)
downloadchouette-core-8eacb2238bb70f774f89d4cad4311725d826b2a0.tar.bz2
Fixes JourneyPattern specs (by adding position in JourneyPattern state). Refs #6193
-rw-r--r--spec/models/chouette/journey_pattern_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/chouette/journey_pattern_spec.rb b/spec/models/chouette/journey_pattern_spec.rb
index 1648c6ecb..57ee5ab4e 100644
--- a/spec/models/chouette/journey_pattern_spec.rb
+++ b/spec/models/chouette/journey_pattern_spec.rb
@@ -118,7 +118,7 @@ describe Chouette::JourneyPattern, :type => :model do
jp.attributes.slice('name', 'published_name', 'registration_number').tap do |item|
item['object_id'] = jp.objectid
item['stop_points'] = jp.stop_points.map do |sp|
- { 'id' => sp.stop_area_id }
+ { 'id' => sp.stop_area_id, 'position' => sp.position }
end
item['costs'] = jp.costs
end