Sha256: 321b1f3a2065a271d00d83e2f448958343372f73015674d69d07adf7ffa33b5b
Contents?: true
Size: 459 Bytes
Versions: 4
Compression:
Stored size: 459 Bytes
Contents
require 'spec_helper' describe Mongo::Socket::TCP do require_no_ssl let(:address) { default_address } let!(:resolver) do address.send(:create_resolver, {}) end let(:socket) do resolver.socket(5, {}) end describe '#address' do it 'returns the address and tls indicator' do addr = socket.send(:socket).remote_address expect(socket.send(:address)).to eq("#{addr.ip_address}:#{addr.ip_port} (no TLS)") end end end
Version data entries
4 entries across 4 versions & 2 rubygems