Sha256: b5be7ddb8082e45e438316b3accd587fb0464a316904d93c0a7d037dc8549a41

Contents?: true

Size: 421 Bytes

Versions: 18

Compression:

Stored size: 421 Bytes

Contents

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

18 entries across 18 versions & 1 rubygems

Version Path
nanoc-4.4.5 test/cli/commands/test_check.rb
nanoc-4.4.4 test/cli/commands/test_check.rb
nanoc-4.4.3 test/cli/commands/test_check.rb
nanoc-4.4.2 test/cli/commands/test_check.rb
nanoc-4.4.1 test/cli/commands/test_check.rb
nanoc-4.4.0 test/cli/commands/test_check.rb
nanoc-4.3.8 test/cli/commands/test_check.rb
nanoc-4.3.7 test/cli/commands/test_check.rb
nanoc-4.3.6 test/cli/commands/test_check.rb
nanoc-4.3.5 test/cli/commands/test_check.rb
nanoc-4.3.4 test/cli/commands/test_check.rb
nanoc-4.3.3 test/cli/commands/test_check.rb
nanoc-4.3.2 test/cli/commands/test_check.rb
nanoc-4.3.1 test/cli/commands/test_check.rb
nanoc-4.3.0 test/cli/commands/test_check.rb
nanoc-4.2.4 test/cli/commands/test_check.rb
nanoc-4.2.3 test/cli/commands/test_check.rb
nanoc-4.2.2 test/cli/commands/test_check.rb