Improve usage of variables in MergeRequest model spec
The spec for EE::MergeRequest contains top-level variables that are overrided and needs some improvements:
-
let(:project) { create(:project, :repository) }
is overrided in other examples 1 2 3 and more. Concider using only top-level definition ofproject
and also define it withlet_it_be
to improve performance. -
merge_request
is defined assubject
but it's overrided in following examples as well 1 2 3 and more. Concider definingmerge_request
withlet_it_be
and remove top levelsubject
.