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

Version Path
nanoc-4.8.9 spec/nanoc/base/views/layout_collection_view_spec.rb
nanoc-4.8.8 spec/nanoc/base/views/layout_collection_view_spec.rb
nanoc-4.8.7 spec/nanoc/base/views/layout_collection_view_spec.rb
nanoc-4.8.6 spec/nanoc/base/views/layout_collection_view_spec.rb
nanoc-4.8.5 spec/nanoc/base/views/layout_collection_view_spec.rb
nanoc-4.8.4 spec/nanoc/base/views/layout_collection_view_spec.rb
nanoc-4.8.3 spec/nanoc/base/views/layout_collection_view_spec.rb
nanoc-4.8.2 spec/nanoc/base/views/layout_collection_view_spec.rb
nanoc-4.8.1 spec/nanoc/base/views/layout_collection_view_spec.rb
nanoc-4.8.0 spec/nanoc/base/views/layout_collection_view_spec.rb
nanoc-4.7.14 spec/nanoc/base/views/layout_collection_view_spec.rb
nanoc-4.7.13 spec/nanoc/base/views/layout_collection_view_spec.rb