Sha256: fb99662ad5ee5e54f443c16ccc787e0d42555ff0ab6afa2ef5908c3df343bec8
Contents?: true
Size: 661 Bytes
Versions: 18
Compression:
Stored size: 661 Bytes
Contents
# frozen_string_literal: true describe 'GH-1102', site: true, stdio: true do before do File.write('content/index.html', '<%= "things" %>') File.write('Rules', <<EOS) compile '/**/*.html' do filter :erb write item.identifier.to_s end EOS end before do Nanoc::CLI.run(%w[compile]) end it 'does not output filename more than once' do regex = /skip.*index\.html.*skip.*index\.html/m expect { Nanoc::CLI.run(%w[compile --verbose]) }.not_to output(regex).to_stdout end it 'outputs filename' do regex = /skip.*index\.html/ expect { Nanoc::CLI.run(%w[compile --verbose]) }.to output(regex).to_stdout end end
Version data entries
18 entries across 18 versions & 1 rubygems