Sha256: e9998e90a4e8e0211c7541e95b5b3f7d32f76138c4d004d1029e800b7944f5e2

Contents?: true

Size: 457 Bytes

Versions: 4

Compression:

Stored size: 457 Bytes

Contents

describe 'GH-1082', site: true, stdio: true do
  before do
    File.write('content/a.erb', '<%= @items["/b.*"].binary? %>')
    File.write('content/b.dat', 'stuff')

    File.write('Rules', <<EOS)
  compile '/a.*' do
    filter :erb
    write item.identifier.without_ext + '.txt'
  end

  passthrough '/b.*'
EOS
  end

  it 'requires /b to be compiled first' do
    Nanoc::CLI.run(%w[compile])
    expect(File.read('output/a.txt')).to eql('true')
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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