Sha256: 285c18b04ec26099f9949523c9f161a3b17837c9c78c3793399c7117a1a6b2f7
Contents?: true
Size: 707 Bytes
Versions: 4
Compression:
Stored size: 707 Bytes
Contents
describe 'GH-1022', site: true, stdio: true do before do File.write('content/ubuntu-16.10-server-amd64.iso.txt', 'torrent contents') File.write('content/ubuntu-16.10-server-amd64.iso.yaml', 'distro: Ubuntu') File.write('layouts/default.erb', '<%= @item[:distro] %> / <%= yield %>') File.write('Rules', <<EOS) compile '/**/*' do layout '/default.*' write item.identifier end layout '/*.erb', :erb EOS end it 'recompiles all reps of a changed item' do Nanoc::CLI.run(%w[compile]) expect(File.file?('output/ubuntu-16.10-server-amd64.iso.txt')).to be expect(File.read('output/ubuntu-16.10-server-amd64.iso.txt')).to eq('Ubuntu / torrent contents') end end
Version data entries
4 entries across 4 versions & 1 rubygems