Sha256: aa693dd7710e07b5622d3e8dc257c2374befc4dc0560efbd47fbe6d4ce861a56
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::ItemCollectionWithoutRepsView do let(:view_class) { Nanoc::BasicItemView } 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::ItemCollectionWithoutRepsView>') } end end
Version data entries
3 entries across 3 versions & 1 rubygems