Sha256: 396ce3da2fbea31b0c37622d8b17739f7ba24424311d00ad8033eb2038bd13b1

Contents?: true

Size: 311 Bytes

Versions: 5

Compression:

Stored size: 311 Bytes

Contents

require 'spec_helper'

describe Simple::Metrics do
  class Rdio
    extend Simple::Metrics::Meter

    define_meter :bump_meter

    def bump_dat
      bump_meter.mark
    end
  end

  let(:rdio) { Rdio.new }

  it "should increment a meter" do
    rdio.bump_dat
    rdio.bump_meter.count.should == 1
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
kb-simple-metrics-0.0.13-java spec/metrics/meter_spec.rb
kb-simple-metrics-0.0.12-java spec/metrics/meter_spec.rb
simple-metrics-0.0.12-java spec/metrics/meter_spec.rb
simple-metrics-0.0.11-java spec/metrics/meter_spec.rb
simple-metrics-0.0.10-java spec/metrics/meter_spec.rb