From 811123cc402c36dd2487b01b7be32ec100a4cb98 Mon Sep 17 00:00:00 2001 From: Iain McNulty Date: Fri, 20 Dec 2024 09:09:53 +0000 Subject: [PATCH] Add with_accredited_partner factory --- spec/factories/providers.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/factories/providers.rb b/spec/factories/providers.rb index 112a5688e1..4c462ada9f 100644 --- a/spec/factories/providers.rb +++ b/spec/factories/providers.rb @@ -41,6 +41,10 @@ provider_name { 'Test Name' } end + trait :with_accredited_partner do + accredited_partnerships { [association(:provider_partnership)] } + end + trait :university do provider_type { :university } urn { nil }