aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorTeddy Wing2018-05-14 18:40:33 +0200
committerTeddy Wing2018-05-14 18:40:33 +0200
commit4ca91f7ccbb71013ffe869be8d7f5cf344d9917a (patch)
tree8bda151b1dcb9cc946fce279510b847d5f0ef4b9 /spec
parent307052d83619ca63532f46e1326f83450daefa10 (diff)
downloadchouette-core-4ca91f7ccbb71013ffe869be8d7f5cf344d9917a.tar.bz2
CleanUp spec: Pass ids to `#exists?` call
Looks like I temporarily forgot that this method takes an ID. Refs #6854
Diffstat (limited to 'spec')
-rw-r--r--spec/models/clean_up_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/clean_up_spec.rb b/spec/models/clean_up_spec.rb
index be169abbb..8a96437fb 100644
--- a/spec/models/clean_up_spec.rb
+++ b/spec/models/clean_up_spec.rb
@@ -291,9 +291,9 @@ RSpec.describe CleanUp, :type => :model do
expect(Chouette::Route.exists?(vehicle_journey.route.id)).to be false
expect(
- Chouette::JourneyPattern.exists?(vehicle_journey.journey_pattern)
+ Chouette::JourneyPattern.exists?(vehicle_journey.journey_pattern.id)
).to be false
- expect(Chouette::VehicleJourney.exists?(vehicle_journey)).to be false
+ expect(Chouette::VehicleJourney.exists?(vehicle_journey.id)).to be false
end
end
end