Sha256: aa693dd7710e07b5622d3e8dc257c2374befc4dc0560efbd47fbe6d4ce861a56

Contents?: true

Size: 676 Bytes

Versions: 3

Compression:

Stored size: 676 Bytes

Contents

# frozen_string_literal: true

require_relative 'support/identifiable_collection_view_examples'

describe Nanoc::ItemCollectionWithoutRepsView do
  let(:view_class) { Nanoc::BasicItemView }
  let(:collection_class) { Nanoc::Int::ItemCollection }
  it_behaves_like 'an identifiable collection view'

  describe '#inspect' do
    let(:wrapped) do
      Nanoc::Int::ItemCollection.new(config)
    end

    let(:view) { described_class.new(wrapped, view_context) }
    let(:view_context) { double(:view_context) }
    let(:config) { { string_pattern_type: 'glob' } }

    subject { view.inspect }

    it { is_expected.to eql('<Nanoc::ItemCollectionWithoutRepsView>') }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nanoc-4.8.12 spec/nanoc/base/views/item_collection_without_reps_view_spec.rb
nanoc-4.8.11 spec/nanoc/base/views/item_collection_without_reps_view_spec.rb
nanoc-4.8.10 spec/nanoc/base/views/item_collection_without_reps_view_spec.rb