1
0

status_fabricator.rb 258 B

12345678910
  1. # frozen_string_literal: true
  2. Fabricator(:status) do
  3. account { Fabricate.build(:account) }
  4. text 'Lorem ipsum dolor sit amet'
  5. after_build do |status|
  6. status.uri = Faker::Internet.device_token if !status.account.local? && status.uri.nil?
  7. end
  8. end