about summary refs log tree commit diff
path: root/spec/fabricators/status_fabricator.rb
blob: 8a0a8aa557273f70edc09b139dd49633c1905c79 (plain) (blame)
1
2
3
4
5
6
7
8
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