Sha256: ff0ce29c2319f5f6db7d5a36ce5b82e813557448c9aa7a9fb56096768bf7c775

Contents?: true

Size: 278 Bytes

Versions: 10

Compression:

Stored size: 278 Bytes

Contents

require 'rails_helper'

describe LHC::Error do

  context 'timeout' do

    it 'throws timeout exception in case of a timeout' do
      stub_request(:any, 'local.ch').to_timeout
      expect(->{
        LHC.get('local.ch')
      }).to raise_error LHC::Timeout
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
lhc-3.4.0 spec/error/timeout_spec.rb
lhc-3.3.0 spec/error/timeout_spec.rb
lhc-3.2.0 spec/error/timeout_spec.rb
lhc-3.1.1 spec/error/timeout_spec.rb
lhc-3.1.0 spec/error/timeout_spec.rb
lhc-3.0.0 spec/error/timeout_spec.rb
lhc-2.0.0 spec/error/timeout_spec.rb
lhc-1.2.0 spec/error/timeout_spec.rb
lhc-1.1.0 spec/error/timeout_spec.rb
lhc-0.2.1 spec/error/timeout_spec.rb