From 3649fff70dc7302a5e889c6c6bcb54bd74f0eb91 Mon Sep 17 00:00:00 2001 From: Cory Streiff Date: Mon, 23 Dec 2024 14:36:31 +0100 Subject: [PATCH] Fix factory_bot linting error --- spec/factories/tags.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/factories/tags.rb b/spec/factories/tags.rb index 75763f458b..78021817a2 100644 --- a/spec/factories/tags.rb +++ b/spec/factories/tags.rb @@ -10,5 +10,6 @@ FactoryBot.define do factory :tag do name { "Holidays" } + initialize_with { Tag.find_or_create_by(name:)} end end