Sha256: 1639f7c3a61e59c2d8de8fc11cdf343beb42da72726c582f13ff283a366af8cb

Contents?: true

Size: 427 Bytes

Versions: 4

Compression:

Stored size: 427 Bytes

Contents

describe 'GH-1015', 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 'errors' do
    expect { Nanoc::CLI.run(%w[compile --verbose]) }.to raise_exception(Nanoc::Int::ItemRepRouter::RouteWithoutSlashError)
    expect(File.file?('outputfoo.html')).not_to be
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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