Sha256: c513b266bce32b5fda3e53da2897499df5360c281c2a1e6afd13798771625a56
Contents?: true
Size: 468 Bytes
Versions: 3
Compression:
Stored size: 468 Bytes
Contents
# frozen_string_literal: true require "test_helper" class Status5xxTest < Minitest::Test test "detects as error" do register_uri(:get, "http://example.org/", status: 500) response = Aitch.get("http://example.org/") assert response.error? end test "sets error" do register_uri(:get, "http://example.org/", status: 500) response = Aitch.get("http://example.org/") assert_equal Aitch::InternalServerErrorError, response.error end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
aitch-1.2.1 | test/aitch/response/status_5xx_test.rb |
aitch-1.2.0 | test/aitch/response/status_5xx_test.rb |
aitch-1.1.0 | test/aitch/response/status_5xx_test.rb |