Glitch-Shrike/spec/fabricators/announcement_fabricator.rb

7 lines
140 B
Ruby

Fabricator(:announcement) do
text { Faker::Lorem.paragraph(sentence_count: 2) }
published true
starts_at nil
ends_at nil
end