Welcome to mirror list, hosted at ThFree Co, Russian Federation.

authentication_event.rb « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e02698fac38e9fe8e4d0dbca2a29b3494e47540d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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 }

    trait :successful do
      result { :success }
    end

    trait :failed do
      result { :failed }
    end
  end
end