mirror of
https://github.com/inspec/inspec
synced 2024-11-23 05:03:07 +00:00
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:
parent
ac2d782266
commit
b51ad8acb8
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue