Sha256: 2bd26517012f5291bf3a572fc48a178cdb2dd59b0b3e3bfe0d340fbad12845ca
Contents?: true
Size: 611 Bytes
Versions: 12
Compression:
Stored size: 611 Bytes
Contents
# frozen_string_literal: true describe Nanoc::ItemCollectionWithoutRepsView do let(:view_class) { Nanoc::ItemWithoutRepsView } let(:collection_class) { Nanoc::Int::ItemCollection } it_behaves_like 'an identifiable collection' 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
12 entries across 12 versions & 1 rubygems