Sha256: 8f049eddcc549b1b02175f8dd81ec094940cdeeafd2038ea89d523e48567ad20
Contents?: true
Size: 659 Bytes
Versions: 3
Compression:
Stored size: 659 Bytes
Contents
# frozen_string_literal: true require_relative 'support/identifiable_collection_view_examples' describe Nanoc::LayoutCollectionView do let(:view_class) { Nanoc::LayoutView } let(:collection_class) { Nanoc::Int::LayoutCollection } it_behaves_like 'an identifiable collection view' 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
3 entries across 3 versions & 1 rubygems