Sha256: fc13353ca6abc1b0b9c0221525ae6e601888bb3cf706d5387182aff19e2a70b3
Contents?: true
Size: 501 Bytes
Versions: 3
Compression:
Stored size: 501 Bytes
Contents
# frozen_string_literal: true require_relative 'support/document_view_examples' describe Nanoc::LayoutView do let(:entity_class) { Nanoc::Int::Layout } let(:other_view_class) { Nanoc::CompilationItemView } it_behaves_like 'a document view' describe '#inspect' do let(:item) { Nanoc::Int::Layout.new('content', {}, '/asdf') } let(:view) { described_class.new(item, nil) } subject { view.inspect } it { is_expected.to eql('<Nanoc::LayoutView identifier=/asdf>') } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nanoc-4.8.12 | spec/nanoc/base/views/layout_view_spec.rb |
nanoc-4.8.11 | spec/nanoc/base/views/layout_view_spec.rb |
nanoc-4.8.10 | spec/nanoc/base/views/layout_view_spec.rb |