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