diff options
author | Igor <idrozdov@gitlab.com> | 2019-04-23 13:01:17 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2019-04-23 13:01:17 +0000 |
commit | fb1b1956d35f56e2a981d1c5c190ffc1f040e7f6 (patch) | |
tree | a399f4ee803c4982b9f89d670847585a2cd76a8c /spec/lib | |
parent | a59b97d74bb5ea81f1ae99e2bce7d7d75dad53cc (diff) | |
download | gitlab-ce-fb1b1956d35f56e2a981d1c5c190ffc1f040e7f6.tar.gz |
Add feature flag to disable LFS check
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab/checks/lfs_check_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/lib/gitlab/checks/lfs_check_spec.rb b/spec/lib/gitlab/checks/lfs_check_spec.rb index 35f8069c8a4..dad14e100a7 100644 --- a/spec/lib/gitlab/checks/lfs_check_spec.rb +++ b/spec/lib/gitlab/checks/lfs_check_spec.rb @@ -27,6 +27,18 @@ describe Gitlab::Checks::LfsCheck do allow(project).to receive(:lfs_enabled?).and_return(true) end + context 'with lfs_check feature disabled' do + before do + stub_feature_flags(lfs_check: false) + end + + it 'skips integrity check' do + expect_any_instance_of(Gitlab::Git::LfsChanges).not_to receive(:new_pointers) + + subject.validate! + end + end + context 'deletion' do let(:changes) { { oldrev: oldrev, ref: ref } } |