When telemetry is disabled Inspec.record_telemetry_data doesn't record

Signed-off-by: Miah Johnson <miah@chia-pet.org>
This commit is contained in:
Miah Johnson 2019-05-03 16:13:45 -07:00
parent ac2d782266
commit b51ad8acb8

View file

@ -25,4 +25,9 @@ class TestTelemetryGlobalMethods < Minitest::Test
assert_equal ['serverspec_compat'], depgrp.data
assert_equal :deprecation_group, depgrp.name
end
def test_telemetry_disabled
@collector.load_config(Inspec::Config.mock(telemetry: false))
refute Inspec.record_telemetry_data(:deprecation_group, 'serverspec_compat')
end
end