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

Version Path
nanoc-4.7.5 spec/nanoc/regressions/gh_947_spec.rb
nanoc-4.7.4 spec/nanoc/regressions/gh_947_spec.rb
nanoc-4.7.3 spec/nanoc/regressions/gh_947_spec.rb
nanoc-4.7.2 spec/nanoc/regressions/gh_947_spec.rb
nanoc-4.7.1 spec/nanoc/regressions/gh_947_spec.rb
nanoc-4.7.0 spec/nanoc/regressions/gh_947_spec.rb
nanoc-4.6.4 spec/nanoc/regressions/gh_947_spec.rb
nanoc-4.6.3 spec/nanoc/regressions/gh_947_spec.rb
nanoc-4.6.2 spec/nanoc/regressions/gh_947_spec.rb
nanoc-4.6.1 spec/nanoc/regressions/gh_947_spec.rb
nanoc-4.6.0 spec/nanoc/regressions/gh_947_spec.rb
nanoc-4.5.4 spec/nanoc/regressions/gh_947_spec.rb
nanoc-4.5.3 spec/nanoc/regressions/gh_947_spec.rb
nanoc-4.5.2 spec/nanoc/regressions/gh_947_spec.rb
nanoc-4.5.1 spec/nanoc/regressions/gh_947_spec.rb
nanoc-4.5.0 spec/nanoc/regressions/gh_947_spec.rb
nanoc-4.4.7 spec/nanoc/regressions/gh_947_spec.rb
nanoc-4.4.6 spec/nanoc/regressions/gh_947_spec.rb