Sha256: 1336e21e2d23dfe4edc8c402646a5b8c4de86fb9d5389564a355a4679995e2b3
Contents?: true
Size: 582 Bytes
Versions: 18
Compression:
Stored size: 582 Bytes
Contents
# frozen_string_literal: true describe 'GH-1082', site: true, stdio: true do before do File.write('content/a.erb', '<%= @items["/b.*"].reps[:default].binary? %>') File.write('content/b.erb', '<%= @items["/a.*"].reps[:default].binary? %>') File.write('Rules', <<EOS) compile '/*' do filter :erb write item.identifier.without_ext + '.txt' end EOS end it 'does not require any items to be compiled' do Nanoc::CLI.run(%w[compile]) expect(File.read('output/a.txt')).to eql('false') expect(File.read('output/b.txt')).to eql('false') end end
Version data entries
18 entries across 18 versions & 1 rubygems