Sha256: f1c4c17e0490489fb86b3252bb949a0e4d1947127c91d3823ed4218bfb0f444d
Contents?: true
Size: 529 Bytes
Versions: 7
Compression:
Stored size: 529 Bytes
Contents
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
7 entries across 7 versions & 1 rubygems