add basic API specs

This commit is contained in:
Oleksandr Turchyn
2024-08-25 23:24:59 +03:00
committed by Pete Matsyburka
parent f90a4e5576
commit eead1b2bc4
7 changed files with 627 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
# frozen_string_literal: true
FactoryBot.define do
factory :submission_event do
submission
submitter
event_type { 'view_form' }
event_timestamp { Time.zone.now }
data do
{
ip: Faker::Internet.ip_v4_address,
ua: Faker::Internet.user_agent,
sid: SecureRandom.base58(10),
uid: Faker::Number.number(digits: 4)
}
end
end
end