demarches-normaliennes/spec/factories/release_notes.rb

11 lines
243 B
Ruby
Raw Normal View History

# frozen_string_literal: true
FactoryBot.define do
factory :release_note do
body { "Sample release note body" }
categories { ReleaseNote::CATEGORIES.sample(1) }
published { true }
released_on { 1.day.ago.to_date }
end
end