Sha256: 07ce0d589f7773c5260c4b455b8148ae65e4933411802957b3ba136d4be52f40

Contents?: true

Size: 511 Bytes

Versions: 5

Compression:

Stored size: 511 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :site, class: "Archangel::Site" do
    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

5 entries across 5 versions & 1 rubygems

Version Path
archangel-0.0.6 lib/archangel/testing_support/factories/archangel_sites.rb
archangel-0.0.5 lib/archangel/testing_support/factories/archangel_sites.rb
archangel-0.0.4 lib/archangel/testing_support/factories/archangel_sites.rb
archangel-0.0.3 lib/archangel/testing_support/factories/archangel_sites.rb
archangel-0.0.2 lib/archangel/testing_support/factories/archangel_sites.rb