Sha256: 3f30af3b4dd905e30a7734ac5d3a1093f2fc642d295fb9d7b6f7ca4fbfc6d4dd
Contents?: true
Size: 473 Bytes
Versions: 18
Compression:
Stored size: 473 Bytes
Contents
# frozen_string_literal: true describe 'GH-1064', site: true, stdio: true do before do File.write('content/foo.erb', '*<%= @items["/bar.*"].compiled_content(snapshot: :pre) %>*') File.write('content/bar.erb', 'Bar!') File.write('Rules', <<EOS) compile '/*' do filter :erb write item.identifier end EOS end it 'does not reuse old content' do Nanoc::CLI.run(%w[compile]) expect(File.read('output/foo.erb')).to eql('*Bar!*') end end
Version data entries
18 entries across 18 versions & 1 rubygems