Sha256: bf471ff124d8202217e66819778555db5b1e62100b0ef782e3c158cda69f5433
Contents?: true
Size: 515 Bytes
Versions: 16
Compression:
Stored size: 515 Bytes
Contents
# frozen_string_literal: true FactoryBot.define do factory :exhibit, class: 'Spotlight::Exhibit' do sequence(:title) { |n| "Exhibit Title #{n}" } published { true } after(:build) { |exhibit| exhibit.searches << FactoryBot.build(:default_search, exhibit:) } trait :with_thumbnail do association :thumbnail, factory: :exhibit_thumbnail end end factory :skinny_exhibit, class: 'Spotlight::Exhibit' do sequence(:title) { |n| "Exhibit Title #{n}" } published { true } end end
Version data entries
16 entries across 16 versions & 1 rubygems