Sha256: 8f5dc888ac58e775a64b38b1e0a5a1acb3aff0f7b7e39fad42bfa2d107f305e6

Contents?: true

Size: 634 Bytes

Versions: 1

Compression:

Stored size: 634 Bytes

Contents

require 'spec_helper'

describe MetricsJ::Meter do
  class MeterTest
    extend MetricsJ::Meter

    meter :foo
    meters :baz, 'bar'
  end

  context "DSL" do
    describe '.meter' do
      it "should expose instance methods" do
        meter_test = MeterTest.new

        meter_test.foo_meter.should be_a com.yammer.metrics.core.Meter
      end
    end

    describe '.meters' do
      it "should expose instance methods" do
        meter_test = MeterTest.new

        meter_test.baz_meter.should be_a com.yammer.metrics.core.Meter
        meter_test.bar_meter.should be_a com.yammer.metrics.core.Meter
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
metrics-java-0.0.1 spec/metrics-java/lib/metrics-java/meter_spec.rb