Sha256: 2e8ae7cd2ff7a5b01020079074ea4837312a6a09fe1beb8602a526459447c5b5
Contents?: true
Size: 510 Bytes
Versions: 3
Compression:
Stored size: 510 Bytes
Contents
# frozen_string_literal: true describe 'GH-767', site: true do before do File.write('content/donkey.md', 'Compiled content donkey!') File.write('Rules', <<EOS) compile '/**/*' do filter :erb, stuff: item.path write '/donkey.html' end layout '/foo.*', :erb EOS end it 'does not expose #path on @item' do site = Nanoc::Int::SiteLoader.new.new_from_cwd expect { site.compile }.to raise_error(NoMethodError, /undefined method .*path.* for .*Nanoc::BasicItemView/) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nanoc-4.8.12 | spec/nanoc/regressions/gh_767_spec.rb |
nanoc-4.8.11 | spec/nanoc/regressions/gh_767_spec.rb |
nanoc-4.8.10 | spec/nanoc/regressions/gh_767_spec.rb |