Sha256: 2908797f18a7614cf355141b9fa73a1c520ddc5094fd655667f4c76c027f760b

Contents?: true

Size: 568 Bytes

Versions: 1

Compression:

Stored size: 568 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :site, class: "Archangel::Site" do
    initialize_with { Archangel::Site.first_or_create }

    sequence(:name) { |n| "Site #{n} Name" }
    locale "en"
    meta_keywords "default,keywords,of,my,site"
    meta_description "Default description of my site"

    trait :logo do
      logo { fixture_file_upload(uploader_test_image) }
    end

    trait :favicon do
      favicon { fixture_file_upload(uploader_test_favicon) }
    end

    trait :deleted do
      deleted_at { Time.current }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
archangel-0.0.7 lib/archangel/testing_support/factories/archangel_sites.rb