Sha256: 9c8756e5a45db8c99451d13dd678832534afab37ef9f2b7eaa50ad327a5f03e0

Contents?: true

Size: 440 Bytes

Versions: 15

Compression:

Stored size: 440 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::Errors::GenericTrivial do
        Nanoc::CLI.run %w( check stale )
      end
    end
  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

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