Sha256: 3acfb9bbec2458dbdc362087a457f00b43ca5e55769460d3a1d82c2746d341d2
Contents?: true
Size: 650 Bytes
Versions: 6
Compression:
Stored size: 650 Bytes
Contents
# encoding: utf-8 class Nanoc::Extra::Checking::CheckTest < Nanoc::TestCase 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 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
Version data entries
6 entries across 6 versions & 1 rubygems