module Pageflow
  FactoryBot.define do
    factory :published_entry, class: PublishedEntry do
      transient do
        type_name { nil }
      end

      initialize_with do
        PublishedEntry.new(create(:entry,
                                  :published,
                                  type_name: type_name))
      end

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

module Pageflow
  FactoryBot.define do
    factory :published_entry, class: PublishedEntry do
      transient do
        type_name { 'paged' }
      end

      initialize_with do
        PublishedEntry.new(create(:entry,
                                  :published,
                                  type_name: type_name))
      end

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

Fix scrolled entry json seed spec
Fix scrolled entry json seed spec

Set `type_name` of `published_entry` factory to `paged`. Previous
`nil` value caused error when trying to construct entry type specic
config.

REDMINE-17257
