add basic API specs

This commit is contained in:
Oleksandr Turchyn authored and Pete Matsyburka committed 2024-09-02 20:11:13 +03:00
1 parent f90a4e5576
commit eead1b2bc4
7 files changed
+627

No files matched your search

+2
View File
@@ -4,6 +4,8 @@ FactoryBot.define do
factory :submitter do
submission
email { Faker::Internet.email }
name { Faker::Name.name }
phone { Faker::PhoneNumber.phone_number }
before(:create) do |submitter, _|
submitter.account_id = submitter.submission.account_id