chinwagsocial/spec/fabricators/status_fabricator.rb

11 lines
228 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2016-02-27 01:28:08 +11:00
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
2016-02-27 01:28:08 +11:00
end