Sha256: 93575a8b8b3a05e3d3a97e1d15c892de9ef2efea567a384840c0b3b42d340696
Contents?: true
Size: 370 Bytes
Versions: 1
Compression:
Stored size: 370 Bytes
Contents
# frozen_string_literal: true describe DDTelemetry::Counter do subject(:counter) { described_class.new } it 'starts at 0' do expect(counter.value).to eq(0) end describe '#increment' do subject { counter.increment } it 'increments' do expect { subject } .to change { counter.value } .from(0) .to(1) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ddtelemetry-1.0.0a1 | spec/ddtelemetry/counter_spec.rb |