Improve grammar
This commit is contained in:
parent
25edb0709c
commit
1b547cfba8
2 changed files with 2 additions and 2 deletions
|
@ -417,7 +417,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController
|
||||||
|
|
||||||
def validates_merge_request
|
def validates_merge_request
|
||||||
# If source project was removed and merge request for some reason
|
# If source project was removed and merge request for some reason
|
||||||
# wasn't close (Ex. mr from fork to origin) merge request will be closed
|
# wasn't closed (Ex. MR from fork to origin) merge request will be closed
|
||||||
if !@merge_request.source_project && @merge_request.open?
|
if !@merge_request.source_project && @merge_request.open?
|
||||||
@merge_request.close
|
@merge_request.close
|
||||||
end
|
end
|
||||||
|
|
|
@ -43,7 +43,7 @@ describe 'projects/merge_requests/show.html.haml' do
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'when the merge request is open' do
|
context 'when the merge request is open' do
|
||||||
it 'closes open merge request' do
|
it 'closes the merge request if the source project does not exist' do
|
||||||
closed_merge_request.update_attributes(state: 'open')
|
closed_merge_request.update_attributes(state: 'open')
|
||||||
fork_project.destroy
|
fork_project.destroy
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue