# frozen_string_literal: true FactoryBot.define do factory :widget, class: "Archangel::Widget" do site template nil sequence(:name) { |n| "Widget #{n}" } sequence(:slug) { |n| "widget-#{n}" } content "
Content of the widget
" trait :with_template do association :template, factory: :template, partial: true end trait :deleted do deleted_at { Time.current } end end end