Sha256: a47427f8fb2a136e12246d92529ad350a939505645864d8279d22c1ab1f64a01
Contents?: true
Size: 838 Bytes
Versions: 7
Compression:
Stored size: 838 Bytes
Contents
# frozen_string_literal: true FactoryBot.define do factory :page, class: "Archangel::Page" do site template nil sequence(:title) { |n| "Page #{n} Title" } sequence(:slug) { |n| "page-#{n}" } content "<p>Content of the page</p>" meta_keywords "default,keywords,of,my,page" meta_description "Default description of my page" homepage false published_at { Time.current } trait :with_parent do association :parent, factory: :page end trait :with_template do association :template, factory: :template, partial: false end trait :homepage do homepage true end trait :unpublished do published_at nil end trait :future do published_at { 1.week.from_now } end trait :deleted do deleted_at { Time.current } end end end
Version data entries
7 entries across 7 versions & 1 rubygems