Sha256: e6a85e4f2707163ceef0ad114ac8f430a2f54b9e91de9f4a1d6338d09dd90e3c
Contents?: true
Size: 1.01 KB
Versions: 8
Compression:
Stored size: 1.01 KB
Contents
module Pageflow FactoryBot.define do factory :published_entry, class: PublishedEntry do transient do title account site type_name { 'paged' } revision_attributes { {} } permalink_attributes { nil } with_feature { nil } without_feature { nil } end initialize_with do PublishedEntry.new(create(:entry, :published, title: title, account: account, site: site, type_name: type_name, published_revision_attributes: revision_attributes, permalink_attributes: permalink_attributes, with_feature: with_feature, without_feature: without_feature)) end to_create { |published_entry| published_entry.entry.save! } end end end
Version data entries
8 entries across 8 versions & 1 rubygems