Chatwoot/spec/factories/articles.rb

13 lines
285 B
Ruby
Raw Permalink Normal View History

FactoryBot.define do
2022-05-16 08:29:59 +00:00
factory :article, class: 'Article' do
account_id { 1 }
category_id { 1 }
author_id { 1 }
title { "#{Faker::Movie.title} #{SecureRandom.hex}" }
content { 'MyText' }
description { 'MyDescrption' }
status { 1 }
views { 1 }
end
end