Sha256: 376838582f2b11c84f8eac73253d327a16f1d494dfe2270d64e86b43a943e312

Contents?: true

Size: 640 Bytes

Versions: 4

Compression:

Stored size: 640 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
    title "Page1"
  end
end
  

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
blacklight-spotlight-0.4.1 spec/factories/pages.rb
blacklight-spotlight-0.3.1 spec/factories/pages.rb
blacklight-spotlight-0.3.0 spec/factories/pages.rb
blacklight-spotlight-0.2.0 spec/factories/pages.rb