Sha256: 4af5606a06dc8278939183298dc1073325c98ff6e6519ca15f5ea3c847ac7cb9

Contents?: true

Size: 377 Bytes

Versions: 14

Compression:

Stored size: 377 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

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
nanoc-3.7.3 test/extra/checking/test_check.rb
nanoc-3.7.2 test/extra/checking/test_check.rb
nanoc-3.7.1 test/extra/checking/test_check.rb
nanoc-3.7.0 test/extra/checking/test_check.rb
nanoc-3.6.11 test/extra/checking/test_check.rb
nanoc-3.6.10 test/extra/checking/test_check.rb
nanoc-3.6.9 test/extra/checking/test_check.rb
nanoc-3.6.8 test/extra/checking/test_check.rb
nanoc-3.6.7 test/extra/checking/test_check.rb
nanoc-3.6.6 test/extra/checking/test_check.rb
nanoc-3.6.5 test/extra/checking/test_check.rb
nanoc-3.6.4 test/extra/checking/test_check.rb
nanoc-3.6.3 test/extra/checking/test_check.rb
nanoc-3.6.2 test/extra/checking/test_check.rb