Sha256: d7072597f1b9a8115fd795ce392ca5c211ffef69ae0cc64cba627bc0b3de8009

Contents?: true

Size: 332 Bytes

Versions: 4

Compression:

Stored size: 332 Bytes

Contents

describe 'GH-867', site: true, stdio: true do
  before do
    File.write('content/foo.md', 'stuff')

    File.write('Rules', <<EOS)
  preprocess do
    items.delete_if { |_| true }
  end
EOS
  end

  it 'preprocesses before running show-data' do
    expect { Nanoc::CLI.run(%w[show-data]) }.not_to output(/foo/).to_stdout
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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