summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/git_access_snippet_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/gitlab/git_access_snippet_spec.rb')
-rw-r--r--spec/lib/gitlab/git_access_snippet_spec.rb19
1 files changed, 2 insertions, 17 deletions
diff --git a/spec/lib/gitlab/git_access_snippet_spec.rb b/spec/lib/gitlab/git_access_snippet_spec.rb
index 3b85e3ddd1d..d690a4b2db4 100644
--- a/spec/lib/gitlab/git_access_snippet_spec.rb
+++ b/spec/lib/gitlab/git_access_snippet_spec.rb
@@ -382,12 +382,11 @@ RSpec.describe Gitlab::GitAccessSnippet do
it_behaves_like 'a push to repository to make it over the limit'
end
- shared_examples_for 'a change with GIT_OBJECT_DIRECTORY_RELATIVE env var unset' do
+ context 'a change with GIT_OBJECT_DIRECTORY_RELATIVE env var unset' do
let(:change_size) { 200 }
before do
- stub_feature_flags(git_access_batched_changes_size: batched)
- allow(snippet.repository).to receive(expected_call).and_return(
+ allow(snippet.repository).to receive(:blobs).and_return(
[double(:blob, size: change_size)]
)
end
@@ -396,20 +395,6 @@ RSpec.describe Gitlab::GitAccessSnippet do
it_behaves_like 'a push to repository below the limit'
it_behaves_like 'a push to repository to make it over the limit'
end
-
- context 'when batched computation is enabled' do
- let(:batched) { true }
- let(:expected_call) { :blobs }
-
- it_behaves_like 'a change with GIT_OBJECT_DIRECTORY_RELATIVE env var unset'
- end
-
- context 'when batched computation is disabled' do
- let(:batched) { false }
- let(:expected_call) { :new_blobs }
-
- it_behaves_like 'a change with GIT_OBJECT_DIRECTORY_RELATIVE env var unset'
- end
end
describe 'HEAD realignment' do