summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/checks/single_change_access_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/gitlab/checks/single_change_access_spec.rb')
-rw-r--r--spec/lib/gitlab/checks/single_change_access_spec.rb15
1 files changed, 14 insertions, 1 deletions
diff --git a/spec/lib/gitlab/checks/single_change_access_spec.rb b/spec/lib/gitlab/checks/single_change_access_spec.rb
index e81e4951539..1b34e58797e 100644
--- a/spec/lib/gitlab/checks/single_change_access_spec.rb
+++ b/spec/lib/gitlab/checks/single_change_access_spec.rb
@@ -96,13 +96,26 @@ RSpec.describe Gitlab::Checks::SingleChangeAccess do
let(:provided_commits) { nil }
before do
+ stub_feature_flags(filter_quarantined_commits: filter_quarantined_commits)
+
expect(project.repository)
.to receive(:new_commits)
+ .with(newrev, allow_quarantine: filter_quarantined_commits)
.once
.and_return(expected_commits)
end
- it_behaves_like '#commits'
+ context 'with :filter_quarantined_commits disabled' do
+ let(:filter_quarantined_commits) { false }
+
+ it_behaves_like '#commits'
+ end
+
+ context 'with :filter_quarantined_commits enabled' do
+ let(:filter_quarantined_commits) { true }
+
+ it_behaves_like '#commits'
+ end
end
end
end