login_activity_fabricator.rb 305 B

12345678910
  1. # frozen_string_literal: true
  2. Fabricator(:login_activity) do
  3. user { Fabricate.build(:user) }
  4. authentication_method 'password'
  5. success true
  6. failure_reason nil
  7. ip { Faker::Internet.ip_v4_address }
  8. user_agent { Faker::Internet.user_agent }
  9. end