# frozen_string_literal: true FactoryBot.define do factory :widget, class: "Archangel::Widget" do site design { nil } sequence(:name) { |n| "Widget #{n}" } sequence(:slug) { |n| "widget-#{n}" } content { "

Content of the widget

" } trait :with_design do association :design, factory: :design, partial: true end trait :deleted do deleted_at { Time.current } end end end