Sha256: 045c7389b66098a961db42f54026553f5d2aad770e11e73f6b74fdd160d12a46
Contents?: true
Size: 511 Bytes
Versions: 6
Compression:
Stored size: 511 Bytes
Contents
FactoryBot.define do factory :article do association :user, factory: :user title { Faker::Book.unique.title } body { Faker::Quote.matz } thumnail_url { Faker::Internet.url } public_date { Time.now } association :article_category, factory: :article_category is_public { false } just_created { false } slag { Faker::Internet.password(min_length: 16) } tags { %w[tag1 tag2 tag3] } is_deleted { false } created_at { Time.now } updated_at { Time.now } end end
Version data entries
6 entries across 4 versions & 1 rubygems