Sha256: bd90d26ce28d2fdd0320b384ee30654abedf904647198a77e7bcdbf8c723234c
Contents?: true
Size: 459 Bytes
Versions: 17
Compression:
Stored size: 459 Bytes
Contents
require 'spec_helper' describe Mongo::Socket::TCP do require_no_tls 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
17 entries across 17 versions & 1 rubygems