Sha256: b1ad358b16695cc9407148fcc5d8f1c5fa5d10e4adcd8ba7fc03f9fa5cd8a769
Contents?: true
Size: 543 Bytes
Versions: 10
Compression:
Stored size: 543 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Hyperdrive::Instrumenters::Noop do before do @instrumenter = Hyperdrive::Instrumenters::Noop end it "responds to instrument" do @instrumenter.respond_to?(:instrument).must_equal true end it "returns the result" do @instrumenter.instrument('instrumentation', 'measurement').must_equal 'measurement' end it "optionally takes a block" do @instrumenter.instrument('instrumentation', 'measurement') { |payload| payload + '1' } .must_equal 'measurement1' end end
Version data entries
10 entries across 10 versions & 1 rubygems