Sha256: af2fcd33928214ca0d8a652d77f7ce6aaad9b442333a2db84be23ffc2dad9358

Contents?: true

Size: 355 Bytes

Versions: 4

Compression:

Stored size: 355 Bytes

Contents

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

    File.write('Rules', <<EOS)
  compile '/*.png' do
    write '/foo-s3cr3t.png'
  end

  passthrough '/*.png'
EOS
  end

  it 'writes one file' do
    Nanoc::CLI.run(%w[compile])
    expect(Dir['output/*']).to eql(['output/foo-s3cr3t.png'])
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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