From c177131672a14ef1852c24dad560c343f765e4e5 Mon Sep 17 00:00:00 2001 From: Manuel Bustillo Date: Sun, 11 Aug 2024 18:59:27 +0200 Subject: [PATCH] Fix factories --- spec/factories/groups.rb | 3 +-- spec/factories/guest.rb | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/spec/factories/groups.rb b/spec/factories/groups.rb index a8fe677..9bfade0 100644 --- a/spec/factories/groups.rb +++ b/spec/factories/groups.rb @@ -1,7 +1,6 @@ FactoryBot.define do factory :group do - name { "MyString" } - icon { "MyString" } + sequence(:name) { |i| "Group #{i}" } order { 1 } end end diff --git a/spec/factories/guest.rb b/spec/factories/guest.rb index f761dd9..7ff9066 100644 --- a/spec/factories/guest.rb +++ b/spec/factories/guest.rb @@ -1,5 +1,7 @@ FactoryBot.define do factory :guest do + association :group + first_name { Faker::Name.first_name } last_name { Faker::Name.last_name } email { Faker::Internet.email }