Sha256: 5809bebe9778bf810691f573745061de7904a9a0b4a8452ec59305685094b13c

Contents?: true

Size: 563 Bytes

Versions: 3

Compression:

Stored size: 563 Bytes

Contents

# frozen_string_literal: true

describe Nanoc::ItemCollectionWithoutRepsView do
  let(:view_class) { Nanoc::ItemWithoutRepsView }
  it_behaves_like 'an identifiable collection'

  describe '#inspect' do
    let(:wrapped) do
      Nanoc::Int::IdentifiableCollection.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.7.12 spec/nanoc/base/views/item_collection_without_reps_view_spec.rb
nanoc-4.7.11 spec/nanoc/base/views/item_collection_without_reps_view_spec.rb
nanoc-4.7.10 spec/nanoc/base/views/item_collection_without_reps_view_spec.rb