mirror of
https://github.com/inspec/inspec
synced 2024-11-10 15:14:23 +00:00
Add missing tests for DataSeries#enabled? #disable
Signed-off-by: Miah Johnson <miah@chia-pet.org>
This commit is contained in:
parent
609ca3d194
commit
5a0913e3f6
1 changed files with 12 additions and 0 deletions
|
@ -45,4 +45,16 @@ class TestTelemetryDataSeries < Minitest::Test
|
|||
assert_equal '{"name":"fizz","data":["foo"]}', ds.to_json
|
||||
assert JSON.parse(ds.to_json)
|
||||
end
|
||||
|
||||
def test_enabled
|
||||
ds = Inspec::Telemetry::DataSeries.new('fizz')
|
||||
assert ds.enabled?
|
||||
end
|
||||
|
||||
def test_disable
|
||||
ds = Inspec::Telemetry::DataSeries.new('fizz')
|
||||
assert ds.enabled?
|
||||
ds.disable
|
||||
refute ds.enabled?
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue