Sha256: 15773eaab29e2085e3357ad88a363976428187fb2ae0de2e5db0ac99b24052b6
Contents?: true
Size: 439 Bytes
Versions: 22
Compression:
Stored size: 439 Bytes
Contents
describe 'GH-815', site: true, stdio: true do before do File.write('nanoc.yaml', "animal: \"donkey\"\n") File.write('content/foo.md', '<%= @config.key?(:animal) %>') File.write('Rules', <<EOS) compile '/**/*' do filter :erb write item.identifier.without_ext + '.txt' end EOS end it 'handles #key? properly' do Nanoc::CLI.run(['compile']) expect(File.read('output/foo.txt')).to eql('true') end end
Version data entries
22 entries across 22 versions & 1 rubygems