Sha256: 0b3abdfa21583742bac4774f5547fae8162ed337ccaa986dbae0710a954015de
Contents?: true
Size: 588 Bytes
Versions: 12
Compression:
Stored size: 588 Bytes
Contents
# frozen_string_literal: true describe Nanoc::LayoutCollectionView do let(:view_class) { Nanoc::LayoutView } let(:collection_class) { Nanoc::Int::LayoutCollection } it_behaves_like 'an identifiable collection' describe '#inspect' do let(:wrapped) do Nanoc::Int::LayoutCollection.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::LayoutCollectionView>') } end end
Version data entries
12 entries across 12 versions & 1 rubygems