Sha256: f0a2a0472e4f8b552e9e7682c77b443ca21b8bbc117dcb932704237e7d81e0ef

Contents?: true

Size: 678 Bytes

Versions: 50

Compression:

Stored size: 678 Bytes

Contents

FactoryGirl.define do
  factory :feature_page, class: 'Spotlight::FeaturePage' do
    exhibit
    sequence(:title) { |n| "FeaturePage#{n}" }
    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
    sequence(:title) { |n| "AboutPage#{n}" }
    content '[]'
    published true
  end

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

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
blacklight-spotlight-1.0.0 spec/factories/pages.rb
blacklight-spotlight-1.0.0.alpha2 spec/factories/pages.rb
blacklight-spotlight-1.0.0.alpha1 spec/factories/pages.rb
blacklight-spotlight-0.34.1 spec/factories/pages.rb
blacklight-spotlight-0.34.0 spec/factories/pages.rb
blacklight-spotlight-0.33.3 spec/factories/pages.rb
blacklight-spotlight-0.33.2 spec/factories/pages.rb
blacklight-spotlight-0.33.1 spec/factories/pages.rb
blacklight-spotlight-0.33.0 spec/factories/pages.rb
blacklight-spotlight-0.32.0 spec/factories/pages.rb
blacklight-spotlight-0.31.0 spec/factories/pages.rb
blacklight-spotlight-0.30.0 spec/factories/pages.rb
blacklight-spotlight-0.29.1 spec/factories/pages.rb
blacklight-spotlight-0.29.0 spec/factories/pages.rb
blacklight-spotlight-0.28.3 spec/factories/pages.rb
blacklight-spotlight-0.28.2 spec/factories/pages.rb
blacklight-spotlight-0.28.1 spec/factories/pages.rb
blacklight-spotlight-0.28.0 spec/factories/pages.rb
blacklight-spotlight-0.27.0 spec/factories/pages.rb
blacklight-spotlight-0.26.1 spec/factories/pages.rb