Sha256: 0755ebbbdbfc0113b15b6701791f880d33ab62b216e5ab3be1343b5bd2c050a3

Contents?: true

Size: 425 Bytes

Versions: 22

Compression:

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

22 entries across 22 versions & 1 rubygems

Version Path
nanoc-4.2.1 test/cli/commands/test_check.rb
nanoc-4.2.0 test/cli/commands/test_check.rb
nanoc-4.1.6 test/cli/commands/test_check.rb
nanoc-4.2.0b1 test/cli/commands/test_check.rb
nanoc-4.1.5 test/cli/commands/test_check.rb
nanoc-4.1.4 test/cli/commands/test_check.rb
nanoc-4.1.3 test/cli/commands/test_check.rb
nanoc-4.1.2 test/cli/commands/test_check.rb
nanoc-4.1.1 test/cli/commands/test_check.rb
nanoc-4.1.0 test/cli/commands/test_check.rb
nanoc-4.1.0rc2 test/cli/commands/test_check.rb
nanoc-4.1.0rc1 test/cli/commands/test_check.rb
nanoc-4.1.0b1 test/cli/commands/test_check.rb
nanoc-4.1.0a1 test/cli/commands/test_check.rb
nanoc-4.0.2 test/cli/commands/test_check.rb
nanoc-4.0.1 test/cli/commands/test_check.rb
nanoc-4.0.0 test/cli/commands/test_check.rb
nanoc-4.0.0rc3 test/cli/commands/test_check.rb
nanoc-4.0.0rc2 test/cli/commands/test_check.rb
nanoc-4.0.0rc1 test/cli/commands/test_check.rb