Sha256: 2fac6d37bba396e84b5b1eb9556f5a8ef1f1d7c480ae708ad2ae3bf68e53e0e1

Contents?: true

Size: 237 Bytes

Versions: 16

Compression:

Stored size: 237 Bytes

Contents

module Pageflow
  FactoryBot.define do
    factory :draft_entry, class: DraftEntry do
      initialize_with do
        DraftEntry.new(create(:entry))
      end

      to_create { |draft_entry| draft_entry.entry.save! }
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
pageflow-15.6.1 spec/factories/draft_entries.rb
pageflow-15.6.0 spec/factories/draft_entries.rb
pageflow-15.5.0 spec/factories/draft_entries.rb
pageflow-15.4.0 spec/factories/draft_entries.rb
pageflow-15.3.0 spec/factories/draft_entries.rb
pageflow-15.2.2 spec/factories/draft_entries.rb
pageflow-15.2.1 spec/factories/draft_entries.rb
pageflow-15.2.0 spec/factories/draft_entries.rb
pageflow-15.1.2 spec/factories/draft_entries.rb
pageflow-15.1.1 spec/factories/draft_entries.rb
pageflow-15.1.0 spec/factories/draft_entries.rb
pageflow-15.1.0.rc0 spec/factories/draft_entries.rb
pageflow-15.1.0.beta6 spec/factories/draft_entries.rb
pageflow-15.1.0.beta5 spec/factories/draft_entries.rb
pageflow-15.1.0.beta4 spec/factories/draft_entries.rb
pageflow-15.1.0.beta3 spec/factories/draft_entries.rb