From 4ca91f7ccbb71013ffe869be8d7f5cf344d9917a Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 14 May 2018 18:40:33 +0200 Subject: CleanUp spec: Pass ids to `#exists?` call Looks like I temporarily forgot that this method takes an ID. Refs #6854 --- spec/models/clean_up_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec') 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 -- cgit v1.2.3