Sha256: e5859c9afd5964236bcb3fe62feff009b13f9f5f93012615316796c077bca73f

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::ItemCollectionWithRepsView do
  let(:view_class) { Nanoc::CompilationItemView }
  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::ItemCollectionWithRepsView>') }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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