Sha256: 2fa035ddd6e5711d529d01e857f1647cd41c552794e8ea0ce54b945d0ad2b078
Contents?: true
Size: 375 Bytes
Versions: 2
Compression:
Stored size: 375 Bytes
Contents
# frozen_string_literal: true describe DDTelemetry::BasicCounter 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ddtelemetry-1.0.0a3 | spec/ddtelemetry/basic_counter_spec.rb |
ddtelemetry-1.0.0a2 | spec/ddtelemetry/basic_counter_spec.rb |