Sha256: 982e0ec101f91b61627b224d34dfaa77ef63e708722ebf27774d0272e96a3fdf

Contents?: true

Size: 630 Bytes

Versions: 4

Compression:

Stored size: 630 Bytes

Contents

describe 'GH-1102', site: true, stdio: true do
  before do
    File.write('content/index.html', '<%= "things" %>')

    File.write('Rules', <<EOS)
  compile '/**/*.html' do
    filter :erb
    write item.identifier.to_s
  end
EOS
  end

  before do
    Nanoc::CLI.run(%w[compile])
  end

  it 'does not output filename more than once' do
    regex = /skip.*index\.html.*skip.*index\.html/m
    expect { Nanoc::CLI.run(%w[compile --verbose]) }.not_to output(regex).to_stdout
  end

  it 'outputs filename' do
    regex = /skip.*index\.html/
    expect { Nanoc::CLI.run(%w[compile --verbose]) }.to output(regex).to_stdout
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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