Sha256: 6ca994a3ff63d85e4cecc3d40b10ef8b9ebf94e7e64b3923c6effd887ba87845

Contents?: true

Size: 361 Bytes

Versions: 1

Compression:

Stored size: 361 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :page, class: Spree::Page do
    sequence(:title) { |n| "Page #{n}" }
    body { 'This is the body of the page' }

    sequence(:slug) { |n| "/page#{n}" }

    trait :with_foreign_link do
      foreign_link do
        "http://example.com"
      end
    end

    stores { [build(:store)] }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_static_content-2.0.0 lib/solidus_static_content/factories.rb