Sha256: a704e2e62be7a2493566bea5817151913e4bbc59d2cc8dfe31545a45ea0fa99d
Contents?: true
Size: 523 Bytes
Versions: 18
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
18 entries across 18 versions & 1 rubygems