Sha256: 7a0547ce32eb8c3d7f8a714b497dc2fa09a881320d7afc0ea8a205ff581d6d26
Contents?: true
Size: 560 Bytes
Versions: 4
Compression:
Stored size: 560 Bytes
Contents
describe 'GH-1040', site: true, stdio: true do before do File.write('content/foo.txt', 'bar=<%= @items["/bar.*"].compiled_content %>') File.write('content/bar.txt', 'foo=<%= @items["/foo.*"].compiled_content %>') File.write('layouts/default.erb', '*<%= yield %>*') File.write('Rules', <<EOS) compile '/*' do filter :erb layout '/default.*' write item.identifier end layout '/*.erb', :erb EOS end it 'errors' do expect { Nanoc::CLI.run(%w[compile]) }.to raise_error(Nanoc::Int::Errors::DependencyCycle) end end
Version data entries
4 entries across 4 versions & 1 rubygems