From d5f5c3d7f2d92c180c56053c994a148afd63118a Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Wed, 20 Dec 2023 17:15:29 +0000 Subject: Adds factory_bot to rspec testing suite --- spec/factories/events.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 spec/factories/events.rb (limited to 'spec/factories') 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 -- cgit v1.2.3