Skip to content

A platform for community discussion. Free, open, simple.

324 B
Raw Blame
# frozen_string_literal: true

Fabricator(:calendar_event, from: "DiscourseEvents::Calendar::Event") do
  user
  username { |attrs| attrs[:user].username }

  topic { |attrs| Fabricate(:topic, user: attrs[:user]) }
  post { |attrs| Fabricate(:post, user: attrs[:user], topic: attrs[:topic]) }

  start_date "2000-01-01"
end