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