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

Version Path
hyperdrive-0.0.25 spec/hyperdrive/instrumenters/noop_spec.rb
hyperdrive-0.0.24 spec/hyperdrive/instrumenters/noop_spec.rb
hyperdrive-0.0.23 spec/hyperdrive/instrumenters/noop_spec.rb
hyperdrive-0.0.22 spec/hyperdrive/instrumenters/noop_spec.rb
hyperdrive-0.0.21 spec/hyperdrive/instrumenters/noop_spec.rb
hyperdrive-0.0.20 spec/hyperdrive/instrumenters/noop_spec.rb
hyperdrive-0.0.19 spec/hyperdrive/instrumenters/noop_spec.rb
hyperdrive-0.0.18 spec/hyperdrive/instrumenters/noop_spec.rb
hyperdrive-0.0.17 spec/hyperdrive/instrumenters/noop_spec.rb
hyperdrive-0.0.16 spec/hyperdrive/instrumenters/noop_spec.rb