Sha256: cff40a03a5f43a830ef9c7c6e28dadbcea375793e268770803a2e60089c7736a

Contents?: true

Size: 511 Bytes

Versions: 3

Compression:

Stored size: 511 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :katalyst_content_item, class: "Katalyst::Content::Item" do
    heading { Faker::Lorem.word }
    show_heading { true }
    background { Katalyst::Content.config.backgrounds.sample }
  end

  factory :katalyst_content_content, class: "Katalyst::Content::Content" do
    heading { Faker::Lorem.word }
    show_heading { true }
    background { Katalyst::Content.config.backgrounds.sample }
    content { Faker::Hacker.say_something_smart }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
katalyst-content-0.1.2 spec/factories/katalyst/content/items.rb
katalyst-content-0.1.1 spec/factories/katalyst/content/items.rb
katalyst-content-0.1.0 spec/factories/katalyst/content/items.rb