Sha256: aaad11670d662d35ce042d0edd89d93e7cf096c3df3f36c3981304c3631c26d9
Contents?: true
Size: 523 Bytes
Versions: 4
Compression:
Stored size: 523 Bytes
Contents
describe 'GH-947', site: true, stdio: true do before do File.write('content/foo.md', 'Foo!') File.write('Rules', <<EOS) compile '/foo.*' do write '/foo' end EOS File.open('nanoc.yaml', 'w') do |io| io << 'prune:' << "\n" io << ' auto_prune: true' << "\n" end end example do File.write('output/foo', 'I am an older foo!') expect { Nanoc::CLI.run(%w[compile]) }.to output(%r{\s+update.* output/foo$}).to_stdout expect(File.read('output/foo')).to eq('Foo!') end end
Version data entries
4 entries across 4 versions & 1 rubygems