You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
docuseal/spec/factories/submission_events.rb

19 lines
393 B

# 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