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-15.2.1 spec/timeouts/no_signal_spec.rb
lhc-15.2.0 spec/timeouts/no_signal_spec.rb
lhc-15.1.3 spec/timeouts/no_signal_spec.rb
lhc-15.1.2 spec/timeouts/no_signal_spec.rb
lhc-15.1.1 spec/timeouts/no_signal_spec.rb
lhc-15.1.0 spec/timeouts/no_signal_spec.rb
lhc-16.0.0.pre.pro2162.2 spec/timeouts/no_signal_spec.rb
lhc-16.0.0.pre.pro2162 spec/timeouts/no_signal_spec.rb
lhc-15.0.1 spec/timeouts/no_signal_spec.rb
lhc-15.0.0 spec/timeouts/no_signal_spec.rb
lhc-14.0.0 spec/timeouts/no_signal_spec.rb
lhc-13.4.0.pre.pro1766.1 spec/timeouts/no_signal_spec.rb
lhc-13.2.0 spec/timeouts/no_signal_spec.rb
lhc-13.1.0 spec/timeouts/no_signal_spec.rb
lhc-13.0.0 spec/timeouts/no_signal_spec.rb
lhc-12.3.0 spec/timeouts/no_signal_spec.rb
lhc-12.2.1 spec/timeouts/no_signal_spec.rb
lhc-12.2.0 spec/timeouts/no_signal_spec.rb
lhc-12.1.3 spec/timeouts/no_signal_spec.rb
lhc-12.1.2 spec/timeouts/no_signal_spec.rb