Sha256: 473071143094f1d4b3aaa294a5148e9217f759d7e0ca6dd626902d946b26bb0b
Contents?: true
Size: 663 Bytes
Versions: 22
Compression:
Stored size: 663 Bytes
Contents
describe Nanoc::MutableItemView do let(:entity_class) { Nanoc::Int::Item } it_behaves_like 'a mutable document view' let(:item) { entity_class.new('content', {}, '/asdf/') } let(:view) { described_class.new(item, nil) } it 'does have rep access' do expect(view).not_to respond_to(:compiled_content) expect(view).not_to respond_to(:path) expect(view).not_to respond_to(:reps) end 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::MutableItemView identifier=/asdf/>') } end end
Version data entries
22 entries across 22 versions & 1 rubygems