Sha256: 6f5417e825baf7d5286a54810197aea796fc8792e2d05115525e866a747180a9

Contents?: true

Size: 461 Bytes

Versions: 1

Compression:

Stored size: 461 Bytes

Contents

require 'helper'
require 'peddler/errors/error'

class TestPeddlerErrorsError < MiniTest::Test
  def setup
    @error = Peddler::Errors::Error.new('message', 'cause')
  end

  def test_sets_message
    assert_equal 'message', @error.message
  end

  def test_sets_cause
    assert_equal 'cause', @error.cause
  end

  def test_defines_common_errors
    Peddler::Errors::KNOWN.each do |name|
      assert ::Peddler::Errors.const_defined?(name)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
peddler-1.5.0 test/unit/peddler/errors/test_error.rb