Sha256: f17e9b9610b88c1dc8dc74e56f5038a4abeb3a252310cfed8cb02d52d22f3f37
Contents?: true
Size: 487 Bytes
Versions: 2
Compression:
Stored size: 487 Bytes
Contents
# frozen_string_literal: true describe DDTelemetry::BasicSummary do subject(:summary) { described_class.new } context 'no observations' do its(:values) { is_expected.to be_empty } end context 'one observation' do before { subject.observe(2.1) } its(:values) { is_expected.to eq([2.1]) } end context 'two observations' do before do subject.observe(2.1) subject.observe(4.1) end its(:values) { is_expected.to eq([2.1, 4.1]) } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ddtelemetry-1.0.0a3 | spec/ddtelemetry/basic_summary_spec.rb |
ddtelemetry-1.0.0a2 | spec/ddtelemetry/basic_summary_spec.rb |