aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorjpl2017-02-27 19:10:24 +0100
committerjpl2017-02-27 19:10:24 +0100
commit600e47f093597580178e3e2fbb0cf766014e6d92 (patch)
treef28bd58d2862a72b1bf975c56f16e2be0faafe0d /spec
parent331e69d3d7fc8635a6f8df2a2afb3061d9e213c8 (diff)
downloadchouette-core-600e47f093597580178e3e2fbb0cf766014e6d92.tar.bz2
Refs #2648: fix tests, updating jp_coll
Diffstat (limited to 'spec')
-rw-r--r--spec/models/chouette/route_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/chouette/route_spec.rb b/spec/models/chouette/route_spec.rb
index 7bd89703c..11c455ab6 100644
--- a/spec/models/chouette/route_spec.rb
+++ b/spec/models/chouette/route_spec.rb
@@ -108,7 +108,7 @@ describe Chouette::Route, :type => :model do
end
it "should have swap stop_points from route's journey pattern" do
subject.update_attributes( :stop_points_attributes => swapped_stop_hash)
- expect(Chouette::JourneyPattern.find( journey_pattern.id ).stop_points.map(&:id)).to eq(new_stop_id_list)
+ expect(Chouette::JourneyPattern.find( journey_pattern.id ).stop_points.map(&:id)).sort.to eq(new_stop_id_list.sort)
end
it "should have swap stop_points from route's vehicle journey at stop" do
subject.update_attributes( :stop_points_attributes => swapped_stop_hash)