Sha256: 35483d4968e4dc90f4b17180eb38c66442f201765bad2e0bca9a025e7d77143d

Contents?: true

Size: 378 Bytes

Versions: 10

Compression:

Stored size: 378 Bytes

Contents

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

10 entries across 10 versions & 1 rubygems

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