summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2016-06-29 19:25:44 -0700
committerYorick Peterse <yorickpeterse@gmail.com>2016-06-30 11:52:49 +0200
commit4fca633a317eb065145d3cc687f62eabcb8e8af2 (patch)
tree2dcc0d3bf91d748b12ad2c4689b4d5086f3bc2a2
parenta4ce2d126d969722af7152c4be2c8a6dde3104b5 (diff)
downloadgitlab-ce-4fca633a317eb065145d3cc687f62eabcb8e8af2.tar.gz
Fix broken spec in git_push_service_spec by stubbing an external issue trackerfix-external-issue-rendering
-rw-r--r--spec/services/git_push_service_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/services/git_push_service_spec.rb b/spec/services/git_push_service_spec.rb
index f99ad046f0d..cab9a03d83a 100644
--- a/spec/services/git_push_service_spec.rb
+++ b/spec/services/git_push_service_spec.rb
@@ -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