Sha256: 3460e337cea49ff4904906eac6d23e9548eea5ace8230db60400b5331e975b96

Contents?: true

Size: 547 Bytes

Versions: 4

Compression:

Stored size: 547 Bytes

Contents

describe 'GH-981', site: true, stdio: true do
  before do
    File.write('content/foo.md', 'I am foo!')

    File.write('Rules', <<EOS)
  compile '/foo.*' do
    filter :erb, stuff: self
    write '/foo.html'
  end
EOS
  end

  it 'creates at first' do
    expect { Nanoc::CLI.run(%w[compile --verbose]) }.to output(%r{create.*output/foo\.html$}).to_stdout
  end

  it 'skips the item on second try' do
    Nanoc::CLI.run(%w[compile])
    expect { Nanoc::CLI.run(%w[compile --verbose]) }.to output(%r{skip.*output/foo\.html$}).to_stdout
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nanoc-4.7.9 spec/nanoc/regressions/gh_981_spec.rb
nanoc-4.7.8 spec/nanoc/regressions/gh_981_spec.rb
nanoc-4.7.7 spec/nanoc/regressions/gh_981_spec.rb
nanoc-4.7.6 spec/nanoc/regressions/gh_981_spec.rb