Sha256: 7ad8573033e2e98d215e10f51453479962666669dfc2a15f845e419bc7d2df2d

Contents?: true

Size: 439 Bytes

Versions: 18

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

18 entries across 18 versions & 1 rubygems

Version Path
nanoc-4.7.5 test/cli/commands/test_check.rb
nanoc-4.7.4 test/cli/commands/test_check.rb
nanoc-4.7.3 test/cli/commands/test_check.rb
nanoc-4.7.2 test/cli/commands/test_check.rb
nanoc-4.7.1 test/cli/commands/test_check.rb
nanoc-4.7.0 test/cli/commands/test_check.rb
nanoc-4.6.4 test/cli/commands/test_check.rb
nanoc-4.6.3 test/cli/commands/test_check.rb
nanoc-4.6.2 test/cli/commands/test_check.rb
nanoc-4.6.1 test/cli/commands/test_check.rb
nanoc-4.6.0 test/cli/commands/test_check.rb
nanoc-4.5.4 test/cli/commands/test_check.rb
nanoc-4.5.3 test/cli/commands/test_check.rb
nanoc-4.5.2 test/cli/commands/test_check.rb
nanoc-4.5.1 test/cli/commands/test_check.rb
nanoc-4.5.0 test/cli/commands/test_check.rb
nanoc-4.4.7 test/cli/commands/test_check.rb
nanoc-4.4.6 test/cli/commands/test_check.rb