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

hashed_storage_all_projects_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: 14bf9d61ab5dded2cf4a9b21c3fd29b7a383df00 (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
# frozen_string_literal: true

require 'spec_helper'
require 'rake_helper'

RSpec.describe SystemCheck::App::HashedStorageAllProjectsCheck do
  before do
    silence_output
  end

  describe '#check?' do
    it 'fails when at least one project is in legacy storage' do
      create(:project, :legacy_storage)

      expect(subject.check?).to be_falsey
    end

    it 'succeeds when all projects are in hashed storage' do
      create(:project)

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