add basic API specs
This commit is contained in:
committed by
Pete Matsyburka
parent
f90a4e5576
commit
eead1b2bc4
@@ -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
|
||||
Reference in New Issue
Block a user