Commit 48bc3be6 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Fix naming of test

ALso makes it consistent with EE
parent 90975062
......@@ -269,13 +269,11 @@ describe MergeRequests::RefreshService do
end
end
context 'push to origin repo source branch when an MR was reopened' do
context 'push to origin repo source branch' do
let(:refresh_service) { service.new(@project, @user) }
let(:notification_service) { spy('notification_service') }
before do
@merge_request.update(state: :reopened)
allow(refresh_service).to receive(:execute_hooks)
allow(NotificationService).to receive(:new) { notification_service }
refresh_service.execute(@oldrev, @newrev, 'refs/heads/master')
......
......@@ -405,7 +405,7 @@ describe MergeRequests::UpdateService, :mailer do
end
end
context 'when the issue is relabeled' do
context 'when the merge request is relabeled' do
let!(:non_subscriber) { create(:user) }
let!(:subscriber) { create(:user) { |u| label.toggle_subscription(u, project) } }
......
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