blob: e5e7f6a44502b26d4340449cf1f63c5d51cab19b (
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'
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
|