diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-19 07:33:21 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-19 07:33:21 +0000 |
commit | 36a59d088eca61b834191dacea009677a96c052f (patch) | |
tree | e4f33972dab5d8ef79e3944a9f403035fceea43f /spec/lib/gitlab/checks/single_change_access_spec.rb | |
parent | a1761f15ec2cae7c7f7bbda39a75494add0dfd6f (diff) | |
download | gitlab-ce-36a59d088eca61b834191dacea009677a96c052f.tar.gz |
Add latest changes from gitlab-org/gitlab@15-0-stable-eev15.0.0-rc42
Diffstat (limited to 'spec/lib/gitlab/checks/single_change_access_spec.rb')
-rw-r--r-- | spec/lib/gitlab/checks/single_change_access_spec.rb | 15 |
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 |