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