Sha256: d3db2b8d44b5e5252483b1633acee1276efdbf4d4530b2daa3be9d16df0e855b
Contents?: true
Size: 404 Bytes
Versions: 10
Compression:
Stored size: 404 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' describe DHC::Error do context 'response' do it 'throws timeout exception in case of a timeout' do stub_request(:any, 'depay.fi').to_return(status: 403) begin DHC.get('depay.fi') rescue => e expect(e.response).to be_kind_of(DHC::Response) expect(e.response.code).to eq 403 end end end end
Version data entries
10 entries across 10 versions & 1 rubygems