Sha256: 2a7c4530e5befe0837dc2dcd9fe4a0a84882abc2293931741d2eec6be97d56a7

Contents?: true

Size: 389 Bytes

Versions: 12

Compression:

Stored size: 389 Bytes

Contents

require './lib/dagger'

require 'rspec/mocks'
require 'rspec/expectations'

describe 'IP Connection' do

  it 'works' do
    expect do
      Dagger.get('http://www.awiefjoawijfaowef.com')
    end.to raise_error(SocketError, /getaddrinfo/)

    resp = Dagger.get('http://www.awiefjoawijfaowef.com', { ip: '1.1.1.1'} )
    expect(resp.body).to match('<center>cloudflare</center>')
  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
dagger-2.3.1 spec/ip_connect_spec.rb
dagger-2.3.0 spec/ip_connect_spec.rb
dagger-2.2.0 spec/ip_connect_spec.rb
dagger-2.1.1 spec/ip_connect_spec.rb
dagger-2.0.1 spec/ip_connect_spec.rb
dagger-2.0.0 spec/ip_connect_spec.rb
dagger-1.9.0 spec/ip_connect_spec.rb
dagger-1.8.0 spec/ip_connect_spec.rb
dagger-1.7.1 spec/ip_connect_spec.rb
dagger-1.7.0 spec/ip_connect_spec.rb
dagger-1.6.2 spec/ip_connect_spec.rb
dagger-1.6.1 spec/ip_connect_spec.rb