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

Version Path
nanoc-4.1.0 test/extra/checking/test_check.rb
nanoc-4.1.0rc2 test/extra/checking/test_check.rb
nanoc-4.1.0rc1 test/extra/checking/test_check.rb
nanoc-4.1.0b1 test/extra/checking/test_check.rb
nanoc-4.1.0a1 test/extra/checking/test_check.rb
nanoc-4.0.2 test/extra/checking/test_check.rb
nanoc-4.0.1 test/extra/checking/test_check.rb
nanoc-4.0.0 test/extra/checking/test_check.rb
nanoc-4.0.0rc3 test/extra/checking/test_check.rb
nanoc-4.0.0rc2 test/extra/checking/test_check.rb
nanoc-4.0.0rc1 test/extra/checking/test_check.rb
nanoc-4.0.0b4 test/extra/checking/test_check.rb
nanoc-4.0.0b3 test/extra/checking/test_check.rb