Sha256: 6ec255a56ac0626b26c2d072da8ce2ee41f3970fa03ef006885d815bac1af004

Contents?: true

Size: 385 Bytes

Versions: 22

Compression:

Stored size: 385 Bytes

Contents

describe Nanoc::MutableLayoutView do
  let(:entity_class) { Nanoc::Int::Layout }
  it_behaves_like 'a mutable document view'

  describe '#inspect' do
    let(:item) { Nanoc::Int::Item.new('content', {}, '/asdf/') }
    let(:view) { described_class.new(item, nil) }

    subject { view.inspect }

    it { is_expected.to eql('<Nanoc::MutableLayoutView identifier=/asdf/>') }
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

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