Sha256: 192b020419fc632c6c350408023e1c2622de18d9e3a9f6331fbb1e7cbd44ae21

Contents?: true

Size: 439 Bytes

Versions: 4

Compression:

Stored size: 439 Bytes

Contents

require 'helper'

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.7.9 test/cli/commands/test_check.rb
nanoc-4.7.8 test/cli/commands/test_check.rb
nanoc-4.7.7 test/cli/commands/test_check.rb
nanoc-4.7.6 test/cli/commands/test_check.rb