Sha256: f5d65a58eac20f88291e545f758e478916361c1f786276a8610a5018561e6213
Contents?: true
Size: 736 Bytes
Versions: 4
Compression:
Stored size: 736 Bytes
Contents
# encoding: utf-8 class Nanoc::CLI::ErrorHandlerTest < MiniTest::Unit::TestCase include Nanoc::TestHelpers def test_resolution_for_with_unknown_gem error = LoadError.new('no such file to load -- afjlrestjlsgrshter') assert_nil handler.send(:resolution_for, error) end def test_resolution_for_with_known_gem $loud = true error = LoadError.new('no such file to load -- kramdown') assert_match(/^Try installing /, handler.send(:resolution_for, error)) ensure $loud = false end def test_resolution_for_with_not_load_error error = RuntimeError.new('nuclear meltdown detected') assert_nil handler.send(:resolution_for, error) end def handler Nanoc::CLI::ErrorHandler.new end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
nanoc-3.5.0 | test/cli/test_error_handler.rb |
nanoc-3.5.0b2 | test/cli/test_error_handler.rb |
nanoc-3.5.0b1 | test/cli/test_error_handler.rb |
nanoc-3.4.3 | test/cli/test_error_handler.rb |