Add missing tests for DataSeries#enabled? #disable

Signed-off-by: Miah Johnson <miah@chia-pet.org>
This commit is contained in:
Miah Johnson 2019-05-08 00:44:51 -07:00
parent 609ca3d194
commit 5a0913e3f6

View file

@ -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