2021-01-03 14:25:43 +05:30
|
|
|
# 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-12-11 22:18:48 +05:30
|
|
|
|
|
|
|
trait :successful do
|
|
|
|
result { :success }
|
|
|
|
end
|
|
|
|
|
|
|
|
trait :failed do
|
|
|
|
result { :failed }
|
|
|
|
end
|
2021-01-03 14:25:43 +05:30
|
|
|
end
|
|
|
|
end
|