Sha256: 36b45737057edbec25e81ea6bc53224d3226fab4dda795a79327648ff9fecf4e

Contents?: true

Size: 540 Bytes

Versions: 10

Compression:

Stored size: 540 Bytes

Contents

require 'helper'
require 'flipper/instrumenters/noop'

describe Flipper::Instrumenters::Noop do
  describe ".instrument" do
    context "with name" do
      it "yields block" do
        yielded = false
        described_class.instrument(:foo) { yielded = true }
        yielded.should eq(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 eq(true)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
flipper-0.7.1 spec/flipper/instrumenters/noop_spec.rb
flipper-0.7.0 spec/flipper/instrumenters/noop_spec.rb
flipper-0.7.0.beta6 spec/flipper/instrumenters/noop_spec.rb
flipper-0.7.0.beta5 spec/flipper/instrumenters/noop_spec.rb
flipper-0.7.0.beta4 spec/flipper/instrumenters/noop_spec.rb
flipper-0.7.0.beta3 spec/flipper/instrumenters/noop_spec.rb
flipper-0.7.0.beta2 spec/flipper/instrumenters/noop_spec.rb
flipper-0.7.0.beta1 spec/flipper/instrumenters/noop_spec.rb
flipper-0.6.3 spec/flipper/instrumenters/noop_spec.rb
flipper-0.6.2 spec/flipper/instrumenters/noop_spec.rb