blob: 64e384e4d2240d61983126c2f81982ba783d45f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# 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
|