blob: adab81b258927a749ff7290c97df50d07f64b412 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Gitlab::Pages::Stores::LocalStore do
describe '#enabled' do
let(:local_store) { double(enabled: true) }
subject(:local_store_enabled) { described_class.new(local_store).enabled }
context 'when the pages_update_legacy_storage FF is disabled' do
before do
stub_feature_flags(pages_update_legacy_storage: false)
end
it { is_expected.to be_falsey }
end
context 'when the pages_update_legacy_storage FF is enabled' do
it 'is equal to the original value' do
expect(local_store_enabled).to eq(local_store.enabled)
end
end
end
end
|