aboutsummaryrefslogtreecommitdiffstats
path: root/test/plum/test_error.rb
blob: 8eaa4892a1fe78c72f1fefaad5599e6d0ceaa81e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
require "test_helper"

class ErrorTest < Minitest::Test
  def test_http_error_http2_error_code
    test = -> klass {
      e = klass.new(:cancel)
      assert_equal(0x08, e.http2_error_code)
    }

    test.call HTTPError
  end
end