diff options
author | Matthew Lemon <y@yulqen.org> | 2023-12-20 17:15:29 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-12-20 17:15:29 +0000 |
commit | d5f5c3d7f2d92c180c56053c994a148afd63118a (patch) | |
tree | cab85e7cfc21e7a00e9719626e3db19789790f55 /spec/factories | |
parent | 17c866a3f93e24c5d022a3b9697a5c6293795f74 (diff) |
Adds factory_bot to rspec testing suite
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/events.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/factories/events.rb b/spec/factories/events.rb new file mode 100644 index 0000000..8fbba83 --- /dev/null +++ b/spec/factories/events.rb @@ -0,0 +1,11 @@ +FactoryBot.define do + factory :event do + name { "MyString" } + date { "2023-12-20" } + organisation + end + + factory :organisation do + name { "Smersh" } + end +end |