status_fabricator.rb 197 B

12345678
  1. Fabricator(:status) do
  2. account
  3. text "Lorem ipsum dolor sit amet"
  4. after_build do |status|
  5. status.uri = Faker::Internet.device_token if !status.account.local? && status.uri.nil?
  6. end
  7. end