Sha256: efc2001742386b8275ec0ab654de5a5f4ddc74e08a1cac9fbaa934a59e15312f

Contents?: true

Size: 523 Bytes

Versions: 22

Compression:

Stored size: 523 Bytes

Contents

describe Nanoc::ItemCollectionWithRepsView do
  let(:view_class) { Nanoc::ItemWithRepsView }
  it_behaves_like 'an identifiable collection'

  describe '#inspect' do
    let(:wrapped) do
      Nanoc::Int::IdentifiableCollection.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::ItemCollectionWithRepsView>') }
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
nanoc-4.7.9 spec/nanoc/base/views/item_collection_with_reps_view_spec.rb
nanoc-4.7.8 spec/nanoc/base/views/item_collection_with_reps_view_spec.rb
nanoc-4.7.7 spec/nanoc/base/views/item_collection_with_reps_view_spec.rb
nanoc-4.7.6 spec/nanoc/base/views/item_collection_with_reps_view_spec.rb
nanoc-4.7.5 spec/nanoc/base/views/item_collection_with_reps_view_spec.rb
nanoc-4.7.4 spec/nanoc/base/views/item_collection_with_reps_view_spec.rb
nanoc-4.7.3 spec/nanoc/base/views/item_collection_with_reps_view_spec.rb
nanoc-4.7.2 spec/nanoc/base/views/item_collection_with_reps_view_spec.rb
nanoc-4.7.1 spec/nanoc/base/views/item_collection_with_reps_view_spec.rb
nanoc-4.7.0 spec/nanoc/base/views/item_collection_with_reps_view_spec.rb
nanoc-4.6.4 spec/nanoc/base/views/item_collection_with_reps_view_spec.rb
nanoc-4.6.3 spec/nanoc/base/views/item_collection_with_reps_view_spec.rb
nanoc-4.6.2 spec/nanoc/base/views/item_collection_with_reps_view_spec.rb
nanoc-4.6.1 spec/nanoc/base/views/item_collection_with_reps_view_spec.rb
nanoc-4.6.0 spec/nanoc/base/views/item_collection_with_reps_view_spec.rb
nanoc-4.5.4 spec/nanoc/base/views/item_collection_with_reps_view_spec.rb
nanoc-4.5.3 spec/nanoc/base/views/item_collection_with_reps_view_spec.rb
nanoc-4.5.2 spec/nanoc/base/views/item_collection_with_reps_view_spec.rb
nanoc-4.5.1 spec/nanoc/base/views/item_collection_with_reps_view_spec.rb
nanoc-4.5.0 spec/nanoc/base/views/item_collection_with_reps_view_spec.rb