7
0
Ответвление 0
bastodon/spec/fabricators/login_activity_fabricator.rb
2023-06-10 18:29:01 +02:00

10 строки
305 Б
Ruby

# frozen_string_literal: true
Fabricator(:login_activity) do
user { Fabricate.build(:user) }
authentication_method 'password'
success true
failure_reason nil
ip { Faker::Internet.ip_v4_address }
user_agent { Faker::Internet.user_agent }
end