# frozen_string_literal: true

require_relative '../support/mutable_document_view_examples'

describe Nanoc::Core::MutableLayoutView do
  let(:entity_class) { Nanoc::Core::Layout }

  it_behaves_like 'a mutable document view'

  describe '#inspect' do
    subject { view.inspect }

    let(:item) { Nanoc::Core::Item.new('content', {}, '/asdf') }
    let(:view) { described_class.new(item, nil) }

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