Sha256: d22b99366ca07834794b4884691337f2eba58a34f7effb0cdac404015c4b3e9c

Contents?: true

Size: 400 Bytes

Versions: 49

Compression:

Stored size: 400 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

describe LHC::Request do
  context 'timeouts' do
    it 'has no_signal options set to true by default' do
      expect_any_instance_of(Ethon::Easy).to receive(:http_request).with(anything, anything, hash_including(nosignal: true)).and_call_original
      stub_request(:get, "http://local.ch/")
      LHC.get('http://local.ch')
    end
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
lhc-12.1.1 spec/timeouts/no_signal_spec.rb
lhc-12.1.0 spec/timeouts/no_signal_spec.rb
lhc-12.0.3 spec/timeouts/no_signal_spec.rb
lhc-12.0.2 spec/timeouts/no_signal_spec.rb
lhc-12.0.1 spec/timeouts/no_signal_spec.rb
lhc-12.0.0 spec/timeouts/no_signal_spec.rb
lhc-11.2.0 spec/timeouts/no_signal_spec.rb
lhc-11.1.1 spec/timeouts/no_signal_spec.rb
lhc-11.1.0 spec/timeouts/no_signal_spec.rb
lhc-11.0.2 spec/timeouts/no_signal_spec.rb
lhc-11.0.1 spec/timeouts/no_signal_spec.rb
lhc-11.0.0 spec/timeouts/no_signal_spec.rb
lhc-10.5.4 spec/timeouts/no_signal_spec.rb
lhc-10.5.3 spec/timeouts/no_signal_spec.rb
lhc-10.5.2 spec/timeouts/no_signal_spec.rb
lhc-10.5.1 spec/timeouts/no_signal_spec.rb
lhc-10.5.0 spec/timeouts/no_signal_spec.rb
lhc-10.4.3 spec/timeouts/no_signal_spec.rb
lhc-10.4.2 spec/timeouts/no_signal_spec.rb
lhc-10.4.1 spec/timeouts/no_signal_spec.rb