Sha256: 60ab78b505bffeaf313d2eb4ba10cdbe9f9d42bcb2dc883f3219bbb481227b0f
Contents?: true
Size: 814 Bytes
Versions: 8
Compression:
Stored size: 814 Bytes
Contents
module Pageflow FactoryBot.define do factory :draft_entry, class: DraftEntry do transient do title account site type_name { 'paged' } revision_attributes { {} } with_feature { nil } without_feature { nil } end initialize_with do DraftEntry.new(create(:entry, title: title, account: account, site: site, type_name: type_name, draft_attributes: revision_attributes, with_feature: with_feature, without_feature: without_feature)) end to_create { |draft_entry| draft_entry.entry.save! } end end end
Version data entries
8 entries across 8 versions & 1 rubygems