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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-09-20 02:18:09 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-09-20 02:18:09 +0300
commit6ed4ec3e0b1340f96b7c043ef51d1b33bbe85fde (patch)
treedc4d20fe6064752c0bd323187252c77e0a89144b /spec/services/projects/blame_service_spec.rb
parent9868dae7fc0655bd7ce4a6887d4e6d487690eeed (diff)
Add latest changes from gitlab-org/gitlab@15-4-stable-eev15.4.0-rc42
Diffstat (limited to 'spec/services/projects/blame_service_spec.rb')
-rw-r--r--spec/services/projects/blame_service_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/services/projects/blame_service_spec.rb b/spec/services/projects/blame_service_spec.rb
index 54c4315d242..52b0ed3412d 100644
--- a/spec/services/projects/blame_service_spec.rb
+++ b/spec/services/projects/blame_service_spec.rb
@@ -54,6 +54,12 @@ RSpec.describe Projects::BlameService, :aggregate_failures do
it { is_expected.to eq(1..2) }
end
+ context 'when user disabled the pagination' do
+ let(:params) { super().merge(no_pagination: 1) }
+
+ it { is_expected.to be_nil }
+ end
+
context 'when feature flag disabled' do
before do
stub_feature_flags(blame_page_pagination: false)
@@ -75,6 +81,12 @@ RSpec.describe Projects::BlameService, :aggregate_failures do
expect(subject.total_count).to eq(4)
end
+ context 'when user disabled the pagination' do
+ let(:params) { super().merge(no_pagination: 1) }
+
+ it { is_expected.to be_nil }
+ end
+
context 'when feature flag disabled' do
before do
stub_feature_flags(blame_page_pagination: false)