Commit 0e188093 authored by Kev's avatar Kev

Update reverting_merge_request MR test

parent f9dbe7aa
......@@ -2464,8 +2464,10 @@ RSpec.describe MergeRequest, factory_default: :keep do
Commits::RevertService.new(project, current_user, params).execute[:result]
end
let(:revert_merge_request) { create(:merge_request, merge_commit_sha: revert_commit_id) }
it 'returns nil' do
expect(subject.reverting_merge_request(current_user)).to be_nil
expect(subject.reverting_merge_request(current_user)).to be(revert_merge_request)
end
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