diff options
Diffstat (limited to 'spec/factories/authentication_event.rb')
-rw-r--r-- | spec/factories/authentication_event.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/factories/authentication_event.rb b/spec/factories/authentication_event.rb index ff539c6f5c4..e02698fac38 100644 --- a/spec/factories/authentication_event.rb +++ b/spec/factories/authentication_event.rb @@ -7,5 +7,13 @@ FactoryBot.define do 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 |