Sha256: 5a278a162a4a56f272d847334bad7e2ced3a1ade0c0a050fedada1f4b8ce7018

Contents?: true

Size: 554 Bytes

Versions: 12

Compression:

Stored size: 554 Bytes

Contents

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

RSpec.describe Flipper::Instrumenters::Noop do
  describe ".instrument" do
    context "with name" do
      it "yields block" do
        yielded = false
        described_class.instrument(:foo) { yielded = true }
        expect(yielded).to eq(true)
      end
    end

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
flipper-0.10.2 spec/flipper/instrumenters/noop_spec.rb
flipper-0.10.1 spec/flipper/instrumenters/noop_spec.rb
flipper-0.10.0 spec/flipper/instrumenters/noop_spec.rb
flipper-0.9.2 spec/flipper/instrumenters/noop_spec.rb
flipper-0.9.1 spec/flipper/instrumenters/noop_spec.rb
flipper-0.9.0 spec/flipper/instrumenters/noop_spec.rb
flipper-0.9.0.beta1 spec/flipper/instrumenters/noop_spec.rb
flipper-0.8.0 spec/flipper/instrumenters/noop_spec.rb
flipper-0.7.5 spec/flipper/instrumenters/noop_spec.rb
flipper-0.7.4 spec/flipper/instrumenters/noop_spec.rb
flipper-0.7.3 spec/flipper/instrumenters/noop_spec.rb
flipper-0.7.2 spec/flipper/instrumenters/noop_spec.rb