From 09064bb219279162ba3f84b6287247f9a654dc6c Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Wed, 20 Dec 2023 17:34:26 +0000 Subject: Properly configures factory_bot and adds Faker --- spec/factories/events.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'spec/factories/events.rb') diff --git a/spec/factories/events.rb b/spec/factories/events.rb index 8fbba83..aaaae0a 100644 --- a/spec/factories/events.rb +++ b/spec/factories/events.rb @@ -1,11 +1,11 @@ FactoryBot.define do factory :event do name { "MyString" } - date { "2023-12-20" } - organisation + date { Faker::Date.backward(days: 10) } + organisation_id { "1" } end - factory :organisation do - name { "Smersh" } - end + # factory :organisation do + # name { "Smersh" } + # end end -- cgit v1.2.3