Sha256: c41afdc7bebbc15749ba54aa8b1f10c06ecc525d10a91c22a2bb1b6a28cb4d84

Contents?: true

Size: 616 Bytes

Versions: 5

Compression:

Stored size: 616 Bytes

Contents

FactoryGirl.define do
  factory :feature_page, class: Spotlight::FeaturePage do
    exhibit
    title 'Page1'
    published true
    content '[]'
  end
  factory :feature_subpage, parent: :feature_page do
    transient do
      exhibit
    end
    title 'SubPage1'
    content '[]'
    after(:build) { |subpage, evaluator| subpage.parent_page = FactoryGirl.create(:feature_page, exhibit: evaluator.exhibit) }
  end
  factory :about_page, class: Spotlight::AboutPage do
    exhibit
    title 'Page1'
    content '[]'
    published true
  end

  factory :home_page, class: Spotlight::HomePage do
    exhibit
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
blacklight-spotlight-0.7.2 spec/factories/pages.rb
blacklight-spotlight-0.7.1 spec/factories/pages.rb
blacklight-spotlight-0.7.0 spec/factories/pages.rb
blacklight-spotlight-0.6.0 spec/factories/pages.rb
blacklight-spotlight-0.5.0 spec/factories/pages.rb