Commit cc6fd37d authored by Abdul Wadood's avatar Abdul Wadood

Remove redundant variable owner from merge_requests_controller_spec.rb

parent b6384727
......@@ -53,7 +53,6 @@ RSpec.describe Projects::MergeRequestsController do
let_it_be_with_refind(:project) { create(:project, :repository) }
let_it_be(:author) { create(:user) }
let_it_be(:owner) { create(:admin) }
let(:merge_request) { create(:merge_request_with_diffs, source_project: project, author: author) }
let(:user) { project.creator }
......@@ -313,12 +312,6 @@ RSpec.describe Projects::MergeRequestsController do
context 'when the MR target the fork' do
let(:merge_request) { create(:merge_request, title: 'This is targeting the fork', source_project: project, target_project: project) }
before do
sign_in(owner)
project.add_developer(owner)
project.update!(approvals_before_merge: 0)
end
it_behaves_like 'approvals_before_merge param'
end
end
......
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