Sha256: 60b031fe5121d9cd385037611c6705dd87060427b706a5555d29aa0a1cc7a962

Contents?: true

Size: 549 Bytes

Versions: 17

Compression:

Stored size: 549 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

17 entries across 17 versions & 1 rubygems

Version Path
flipper-0.15.0 spec/flipper/instrumenters/noop_spec.rb
flipper-0.14.0 spec/flipper/instrumenters/noop_spec.rb
flipper-0.13.0 spec/flipper/instrumenters/noop_spec.rb
flipper-0.13.0.beta1 spec/flipper/instrumenters/noop_spec.rb
flipper-0.12.2 spec/flipper/instrumenters/noop_spec.rb
flipper-0.12.1 spec/flipper/instrumenters/noop_spec.rb
flipper-0.12.0 spec/flipper/instrumenters/noop_spec.rb
flipper-0.11.0 spec/flipper/instrumenters/noop_spec.rb
flipper-0.11.0.rc1 spec/flipper/instrumenters/noop_spec.rb
flipper-0.11.0.beta9 spec/flipper/instrumenters/noop_spec.rb
flipper-0.11.0.beta8 spec/flipper/instrumenters/noop_spec.rb
flipper-0.11.0.beta7 spec/flipper/instrumenters/noop_spec.rb
flipper-0.11.0.beta6 spec/flipper/instrumenters/noop_spec.rb
flipper-0.11.0.beta5 spec/flipper/instrumenters/noop_spec.rb
flipper-0.11.0.beta4 spec/flipper/instrumenters/noop_spec.rb
flipper-0.11.0.beta3 spec/flipper/instrumenters/noop_spec.rb
flipper-0.11.0.beta1 spec/flipper/instrumenters/noop_spec.rb