test/extra/checking/test_check.rb in nanoc-3.7.3 vs test/extra/checking/test_check.rb in nanoc-3.7.4

- old
+ new

@@ -5,10 +5,20 @@ def test_output_filenames with_site do |site| check = Nanoc::Extra::Checking::Check.new(site) assert check.output_filenames.empty? File.open('output/foo.html', 'w') { |io| io.write 'hello' } - assert_equal [ 'output/foo.html' ], check.output_filenames + 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' + check = Nanoc::Extra::Checking::Check.new(site) + assert_raises Nanoc::Extra::Checking::OutputDirNotFoundError do + check.output_filenames + end end end end