Sha256: c2d05e71929abb6f500b1f34d5bace39810a21979df1a87b623081e4d3bbc1a4

Contents?: true

Size: 319 Bytes

Versions: 2

Compression:

Stored size: 319 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
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
peddler-1.4.1 test/unit/peddler/errors/test_error.rb
peddler-1.4.0 test/unit/peddler/errors/test_error.rb