Skip to content
Snippets Groups Projects
Verified Commit 4fca633a authored by Stan Hu's avatar Stan Hu Committed by Yorick Peterse
Browse files

Fix broken spec in git_push_service_spec by stubbing an external issue tracker

parent a4ce2d12
No related branches found
No related tags found
1 merge request!4988Handle external issues in IssueReferenceFilter
Pipeline #
Loading
Loading
@@ -314,6 +314,8 @@ describe GitPushService, services: true do
it "doesn't close issues when external issue tracker is in use" do
allow_any_instance_of(Project).to receive(:default_issues_tracker?).
and_return(false)
external_issue_tracker = double(title: 'My Tracker', issue_path: issue.iid)
allow_any_instance_of(Project).to receive(:external_issue_tracker).and_return(external_issue_tracker)
 
# The push still shouldn't create cross-reference notes.
expect do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment