debian-mirror-gitlab/spec/initializers/circuitbox_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
566 B
Ruby
Raw Normal View History

2023-07-09 08:55:56 +05:30
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'circuitbox', feature_category: :shared do
it 'does not configure Circuitbox', unless: Gitlab.ee? do
expect(Circuitbox.default_circuit_store).to be_a(Circuitbox::MemoryStore)
expect(Circuitbox.default_notifier).to be_a(Circuitbox::Notifier::ActiveSupport)
end
it 'configures Circuitbox', if: Gitlab.ee? do
expect(Circuitbox.default_circuit_store).to be_a(Gitlab::CircuitBreaker::Store)
expect(Circuitbox.default_notifier).to be_a(Gitlab::CircuitBreaker::Notifier)
end
end