Sha256: 45828dddb25c17aff95298e0dad5cfbf8a1fa9d27252cd09ea031f6ec261570c
Contents?: true
Size: 458 Bytes
Versions: 18
Compression:
Stored size: 458 Bytes
Contents
# frozen_string_literal: true # encoding: utf-8 require 'spec_helper' describe Mongo::Socket::TCP do let(:socket) do described_class.new('127.0.0.1', SpecConfig.instance.any_port, 5, Socket::AF_INET) end describe '#human_address' do it 'returns the address and tls indicator' do addr = socket.send(:socket).remote_address expect(socket.send(:human_address)).to eq("#{addr.ip_address}:#{addr.ip_port} (no TLS)") end end end
Version data entries
18 entries across 18 versions & 1 rubygems