Sha256: de0b957ef144fed6e019605148347a6562198a4edbdc94aa49776f92ca92c0ca
Contents?: true
Size: 798 Bytes
Versions: 18
Compression:
Stored size: 798 Bytes
Contents
describe 'GH-804', site: true, stdio: true do before do File.write('content/item.md', 'Stuff!') File.write('Rules', <<EOS) compile '/**/*' do filter :erb if item[:dynamic] write item.identifier.without_ext + '.html' end EOS File.write('Checks', <<EOS) check :donkey do self.add_issue('Not enough donkeys') self.add_issue('Too many cats', subject: '/catlady.md') end EOS end it 'does not crash' do expect { Nanoc::CLI.run(%w(check donkey)) }.to( raise_error(Nanoc::Int::Errors::GenericTrivial, 'One or more checks failed').and( output(/Issues found!\n \(global\):\n \[ (\e\[31m)?ERROR(\e\[0m)? \] donkey - Not enough donkeys\n \/catlady.md:\n \[ (\e\[31m)?ERROR(\e\[0m)? \] donkey - Too many cats\n/).to_stdout, ), ) end end
Version data entries
18 entries across 18 versions & 1 rubygems