2020-09-18 20:09:50 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
FactoryBot.define do
|
|
|
|
factory :authentication_event do
|
|
|
|
user
|
|
|
|
provider { :standard }
|
|
|
|
user_name { 'Jane Doe' }
|
|
|
|
ip_address { '127.0.0.1' }
|
|
|
|
result { :failed }
|
2021-11-15 01:10:30 -05:00
|
|
|
|
|
|
|
trait :successful do
|
|
|
|
result { :success }
|
|
|
|
end
|
|
|
|
|
|
|
|
trait :failed do
|
|
|
|
result { :failed }
|
|
|
|
end
|
2020-09-18 20:09:50 -04:00
|
|
|
end
|
|
|
|
end
|