Sha256: 588caa8ef3fd1673acb3023346225ee32f2aa68af30ad7765aaa1f93abe1d5a7

Contents?: true

Size: 222 Bytes

Versions: 1

Compression:

Stored size: 222 Bytes

Contents

FactoryGirl.define do
  factory :exhibit, class: Spotlight::Exhibit do
    sequence(:title) { |n| "Exhibit Title #{n}" }
    after(:build) { |exhibit| exhibit.searches << FactoryGirl.build(:default_search) }
  end
end
  

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blacklight-spotlight-0.4.1 spec/factories/exhibits.rb