diff options
author | Matthew Lemon <y@yulqen.org> | 2023-12-20 17:34:26 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-12-20 17:34:40 +0000 |
commit | 09064bb219279162ba3f84b6287247f9a654dc6c (patch) | |
tree | 1e314b83f5bf85e46a521cb4970b2d05c7bf5af2 /spec/factories/events.rb | |
parent | d5f5c3d7f2d92c180c56053c994a148afd63118a (diff) |
Properly configures factory_bot and adds Faker
Diffstat (limited to 'spec/factories/events.rb')
-rw-r--r-- | spec/factories/events.rb | 10 |
1 files changed, 5 insertions, 5 deletions
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 |