Sha256: bbc4a7f9736c22af5d689d6deb3254797554a978a687607b259ab219bd063889
Contents?: true
Size: 823 Bytes
Versions: 3
Compression:
Stored size: 823 Bytes
Contents
module Pageflow FactoryBot.define do factory :draft_entry, class: DraftEntry do transient do title account theming type_name { 'paged' } revision_attributes { {} } with_feature { nil } without_feature { nil } end initialize_with do DraftEntry.new(create(:entry, title: title, account: account, theming: theming, 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pageflow-15.8.0 | spec/factories/draft_entries.rb |
pageflow-15.7.1 | spec/factories/draft_entries.rb |
pageflow-15.7.0 | spec/factories/draft_entries.rb |