Sha256: c93a08c2477419a66d82773ae249e7bd9908dcfe31ea5ed63e5ba060dcbe3733

Contents?: true

Size: 542 Bytes

Versions: 9

Compression:

Stored size: 542 Bytes

Contents

require 'helper'
require 'cassanity/instrumenters/noop'

describe Cassanity::Instrumenters::Noop do
  describe ".instrument" do
    context "with name" do
      it "yields block" do
        yielded = false
        described_class.instrument(:foo) { yielded = true }
        yielded.should be_true
      end
    end

    context "with name and payload" do
      it "yields block" do
        yielded = false
        described_class.instrument(:foo, {:pay => :load}) { yielded = true }
        yielded.should be_true
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cassanity-0.6.0 spec/unit/cassanity/instrumentors/noop_spec.rb
cassanity-0.6.0.beta5 spec/unit/cassanity/instrumentors/noop_spec.rb
cassanity-0.6.0.beta4 spec/unit/cassanity/instrumentors/noop_spec.rb
cassanity-0.6.0.beta3 spec/unit/cassanity/instrumentors/noop_spec.rb
cassanity-0.6.0.beta2 spec/unit/cassanity/instrumentors/noop_spec.rb
cassanity-0.6.0.beta1 spec/unit/cassanity/instrumentors/noop_spec.rb
cassanity-0.5.1 spec/unit/cassanity/instrumentors/noop_spec.rb
cassanity-0.5.0 spec/unit/cassanity/instrumentors/noop_spec.rb
cassanity-0.4.0 spec/unit/cassanity/instrumentors/noop_spec.rb