Sha256: 39e9dac60c76fc89689449e9cbdea6e70fe43f335dc26cdede638267dc6bc7a9
Contents?: true
Size: 394 Bytes
Versions: 16
Compression:
Stored size: 394 Bytes
Contents
FactoryGirl.define do factory :post_type, class: Pulitzer::PostType do sequence(:name) { "Winterfell news #{1}" } plural { false } kind { Pulitzer::PostType.kinds[:template]} trait :with_content_elements do after(:create) do |post_type| create_list(:post_type_content_element_type, 3, post_type_id: post_type.id) end end end end
Version data entries
16 entries across 16 versions & 1 rubygems