Sha256: f8ca53a71e5aee3c33dc94b8912c2b2498ab889ae9f8455d3e093d3262102c9d

Contents?: true

Size: 380 Bytes

Versions: 22

Compression:

Stored size: 380 Bytes

Contents

describe 'GH-807', site: true, stdio: true do
  before do
    File.write('content/item.md', 'Stuff!')
    File.write('Rules', <<EOS)
  compile '/**/*' do
    filter :erb if item[:dynamic]
    write item.identifier.without_ext + '.html'
  end
EOS
  end

  it 'does not crash' do
    Nanoc::CLI.run(['compile'])

    expect(File.read('output/item.html')).to eql('Stuff!')
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
nanoc-4.4.7 spec/nanoc/regressions/gh_807_spec.rb
nanoc-4.4.6 spec/nanoc/regressions/gh_807_spec.rb