user_device.rb 322 B

12345678910
  1. FactoryBot.define do
  2. factory :user_device do
  3. user_id { 1 }
  4. name { 'test 1' }
  5. location { 'some location' }
  6. user_agent { 'some user agent' }
  7. ip { '127.0.0.1' }
  8. sequence(:fingerprint) { |n| "fingerprint#{n}" }
  9. end
  10. end