Sha256: b838f9842365750e60fcd756ddb9b5b1eed2899936e73fa353308afa0c74c2c3
Contents?: true
Size: 1.6 KB
Versions: 5
Compression:
Stored size: 1.6 KB
Contents
# frozen_string_literal: true require 'spec_helper' require 'pathname' logger = R7Insight.new('185a71d5-32a7-4007-a12d-3295c75a10e2', 'eu') logger.info('ssl') describe R7Insight::Host::CONNECTION do let(:token) { '11111111-2222-3333-aaaa-bbbbbbbbbbbb' } let(:region) { 'eu' } let(:local) { false } let(:debug) { false } let(:ssl) { false } let(:udp) { nil } let(:datahub_endpoint) { ['', 10_000] } let(:host_id) { '' } let(:custom_host) { [false, ''] } let(:endpoint) { false } let(:host) do R7Insight::Host::CONNECTION.new(token, region, local, debug, ssl, datahub_endpoint, host_id, custom_host, udp, endpoint) end let(:logger_console) { host.instance_variable_get(:@logger_console) } describe 'host' do it 'is an instance of CONNECTION' do assert_instance_of(R7Insight::Host::CONNECTION, host) end it 'region is expected value' do assert_equal(host.region, 'eu') end it 'local is expected value' do refute(host.local) end it 'debug is expected value' do refute(host.debug) end it 'ssl is expected value' do refute(host.ssl) end it 'udp port is expected value' do assert_nil(host.udp_port) end it 'id is expected value' do assert_equal(host_id, '') end it 'custom_host is expected value' do assert_equal(custom_host, [false, '']) end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
r7insight-3.0.4 | test/region.rb |
r7insight-3.0.3 | test/region.rb |
r7insight-3.0.2 | test/region.rb |
r7insight-3.0.1 | test/region.rb |
r7insight-3.0.0 | test/region.rb |