Sha256: 95c448bca8c7d42ab0891c70d0e359a9264c1ff29ffb85db66e404cc69c90c71

Contents?: true

Size: 698 Bytes

Versions: 4

Compression:

Stored size: 698 Bytes

Contents

describe 'GH-1134', site: true, stdio: true do
  before do
    File.write('content/foo.txt', 'asdf')

    File.write('Rules', <<EOS)
compile '/**/*' do
  write '/first.html'
  filter :erb
  write '/last.html'
end
EOS
  end

  it 'detects missing output file of non-default rep' do
    Nanoc::CLI.run(%w[compile])
    expect(File.file?('output/first.html')).to be
    expect(File.file?('output/last.html')).to be

    FileUtils.rm_f('output/first.html')
    expect(File.file?('output/first.html')).not_to be
    expect(File.file?('output/last.html')).to be

    Nanoc::CLI.run(%w[compile])
    expect(File.file?('output/first.html')).to be
    expect(File.file?('output/last.html')).to be
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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