From ae8ba81e997b4fdad1c0e92bf3d8c1fe7739a86e Mon Sep 17 00:00:00 2001 From: Manny Dinssa <44172848+Dinssa@users.noreply.github.com> Date: Tue, 3 Sep 2024 14:01:39 +0100 Subject: [PATCH] Fix tests --- app/models/location.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/location.rb b/app/models/location.rb index 60bab3629..55bf99fe7 100644 --- a/app/models/location.rb +++ b/app/models/location.rb @@ -118,7 +118,7 @@ class Location < ApplicationRecord .where.not(id: joins(scheme: [:owning_organisation]).merge(Location.deactivated_by_organisation).pluck(:id)) .where.not(id: incomplete.pluck(:id)) .where.not(id: activating_soon(date).pluck(:id)) - .where(scheme: Scheme.active) + .where(scheme: Scheme.active(date)) } scope :visible, -> { where(discarded_at: nil) }