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