about summary refs log tree commit diff
path: root/spec/fabricators/status_fabricator.rb
blob: 17ac9ccd8a1b1cb49804763525fead7e2193d975 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

Fabricator(:status) do
  account
  text 'Lorem ipsum dolor sit amet'

  after_build do |status|
    status.uri = Faker::Internet.device_token if !status.account.local? && status.uri.nil?
  end
end