Welcome to mirror list, hosted at ThFree Co, Russian Federation.

hashed_storage_enabled_check_spec.rb « app « system_check « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 36c6f0a2be1f28557b03e3d8f378e21cfc2ee981 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe SystemCheck::App::HashedStorageEnabledCheck, :silence_stdout do
  describe '#check?' do
    it 'fails when hashed storage is disabled' do
      stub_application_setting(hashed_storage_enabled: false)

      expect(subject.check?).to be_falsey
    end

    it 'succeeds when hashed storage is enabled' do
      stub_application_setting(hashed_storage_enabled: true)

      expect(subject.check?).to be_truthy
    end
  end
end