Sha256: 128489e780131e7d1a56a192fd2426f7716139a0e1e40d1ed3e298405833e7af

Contents?: true

Size: 444 Bytes

Versions: 4

Compression:

Stored size: 444 Bytes

Contents

# encoding: utf-8

class Nanoc::CLI::Commands::CheckTest < Nanoc::TestCase
  def test_check_stale
    with_site do |_site|
      FileUtils.mkdir_p('output')

      # Should not raise now
      Nanoc::CLI.run %w( check stale )

      # Should raise now
      File.open('output/blah.html', 'w') { |io| io.write 'moo' }
      assert_raises Nanoc::Int::Errors::GenericTrivial do
        Nanoc::CLI.run %w( check stale )
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nanoc-4.0.0b2 test/cli/commands/test_check.rb
nanoc-4.0.0b1 test/cli/commands/test_check.rb
nanoc-4.0.0a2 test/cli/commands/test_check.rb
nanoc-4.0.0a1 test/cli/commands/test_check.rb