Commit 0e6b8caf authored by Kerri Miller's avatar Kerri Miller

Disable :section_codeowners FF for failing spec

parent c1b0cf95
...@@ -95,6 +95,11 @@ describe MergeRequests::RefreshService do ...@@ -95,6 +95,11 @@ describe MergeRequests::RefreshService do
subject subject
end end
context 'when :sectional_codeowners is disabled' do
before do
stub_feature_flags(sectional_codeowners: false)
end
it 'creates an approval rule based on current diff' do it 'creates an approval rule based on current diff' do
file = File.read(Rails.root.join('ee', 'spec', 'fixtures', 'codeowners_example')) file = File.read(Rails.root.join('ee', 'spec', 'fixtures', 'codeowners_example'))
project.repository.create_file(owner, 'CODEOWNERS', file, { branch_name: 'test', message: 'codeowners' }) project.repository.create_file(owner, 'CODEOWNERS', file, { branch_name: 'test', message: 'codeowners' })
...@@ -104,6 +109,7 @@ describe MergeRequests::RefreshService do ...@@ -104,6 +109,7 @@ describe MergeRequests::RefreshService do
expect(another_merge_request.approval_rules.size).to eq(3) expect(another_merge_request.approval_rules.size).to eq(3)
expect(another_merge_request.approval_rules.first.rule_type).to eq('code_owner') expect(another_merge_request.approval_rules.first.rule_type).to eq('code_owner')
end end
end
context 'when code owners disabled' do context 'when code owners disabled' do
let(:enable_code_owner) { false } let(:enable_code_owner) { false }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment