Sha256: 6d46c833e6cb376019d124a30c1b739ef865fe7b5b256be41a251b59a26bc729
Contents?: true
Size: 557 Bytes
Versions: 33
Compression:
Stored size: 557 Bytes
Contents
class Nanoc::Extra::Checking::CheckTest < Nanoc::TestCase def test_output_filenames with_site do |site| File.open('output/foo.html', 'w') { |io| io.write 'hello' } check = Nanoc::Extra::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::Extra::Checking::OutputDirNotFoundError do Nanoc::Extra::Checking::Check.create(site) end end end end
Version data entries
33 entries across 33 versions & 1 rubygems