Sha256: 676479db8cf24644b6adf95ed228d594374ead0fb6d1997c3370b94cea2604a3

Contents?: true

Size: 1.14 KB

Versions: 10

Compression:

Stored size: 1.14 KB

Contents

require 'pageflow/global_config_api_test_helper'

module Pageflow
  module Lint
    # @api private
    module EntryType
      def self.lint(entry_type)
        RSpec.describe "entry type #{entry_type.name}" do
          let(:entry_type) { entry_type }

          describe '#editor_fragment_renderer' do
            it 'renders head fragment without error' do
              entry = DraftEntry.new(FactoryBot.create(:entry))

              expect {
                entry_type.editor_fragment_renderer.head_fragment(entry)
              }.not_to raise_error
            end

            it 'renders body fragment without error' do
              entry = DraftEntry.new(FactoryBot.create(:entry))

              expect {
                entry_type.editor_fragment_renderer.body_fragment(entry)
              }.not_to raise_error
            end

            it 'renders seed fragment without error' do
              entry = DraftEntry.new(FactoryBot.create(:entry))

              expect {
                entry_type.editor_fragment_renderer.seed_fragment(entry)
              }.not_to raise_error
            end
          end
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
pageflow-support-15.2.2 pageflow/lint/entry_type.rb
pageflow-support-15.2.1 pageflow/lint/entry_type.rb
pageflow-support-15.2.0 pageflow/lint/entry_type.rb
pageflow-support-15.1.2 pageflow/lint/entry_type.rb
pageflow-support-15.1.1 pageflow/lint/entry_type.rb
pageflow-support-15.1.0 pageflow/lint/entry_type.rb
pageflow-support-15.1.0.rc0 pageflow/lint/entry_type.rb
pageflow-support-15.1.0.beta6 pageflow/lint/entry_type.rb
pageflow-support-15.1.0.beta5 pageflow/lint/entry_type.rb
pageflow-support-15.1.0.beta4 pageflow/lint/entry_type.rb