Sha256: 0fb41e4ef3f4fad77063d227437e0d0887f7ba1ec6157c4bf78068727ef0b098
Contents?: true
Size: 386 Bytes
Versions: 12
Compression:
Stored size: 386 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: exhibit) } trait :with_thumbnail do association :thumbnail, factory: :exhibit_thumbnail end end end
Version data entries
12 entries across 12 versions & 1 rubygems