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

Version Path
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/mongo-2.8.0/spec/mongo/socket/tcp_spec.rb
mongo-2.9.0.rc0 spec/mongo/socket/tcp_spec.rb
mongo-2.8.0 spec/mongo/socket/tcp_spec.rb
mongo-2.8.0.rc0 spec/mongo/socket/tcp_spec.rb