Sha256: 7bddbafd3b76b09fe3f0f0631d366e011da9fcb36420804e39036340076edc7d
Contents?: true
Size: 547 Bytes
Versions: 22
Compression:
Stored size: 547 Bytes
Contents
require 'helper' class Nanoc::Checking::CheckTest < Nanoc::TestCase def test_output_filenames with_site do |site| File.open('output/foo.html', 'w') { |io| io.write 'hello' } check = Nanoc::Checking::Check.create(site) assert_equal ['output/foo.html'], check.output_filenames end end def test_no_output_dir with_site do |site| site.config[:output_dir] = 'non-existent' assert_raises Nanoc::Checking::OutputDirNotFoundError do Nanoc::Checking::Check.create(site) end end end end
Version data entries
22 entries across 22 versions & 1 rubygems