diff options
author | Stan Hu <stanhu@gmail.com> | 2016-08-24 20:06:16 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2016-08-25 14:53:17 -0700 |
commit | ace38e8397bd4c3eca11e0aafe9a8682ad81bf45 (patch) | |
tree | a52a3a05526cad6a80028f271d17e0e785b9d61f /spec/controllers | |
parent | 501b570dee030ef7124cc001b251769d723d376e (diff) | |
download | gitlab-ce-ace38e8397bd4c3eca11e0aafe9a8682ad81bf45.tar.gz |
Fix external issue tracker "Issues" link leading to 404sfix-external-issue-tracker-link
a70431f874 modified the behavior to link to the external issue tracker
issues URL instead of the project path URL. This restores the
previous behavior.
Closes #21252, #21402
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/projects/issues_controller_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/projects/issues_controller_spec.rb b/spec/controllers/projects/issues_controller_spec.rb index 0836b71056c..16929767ddf 100644 --- a/spec/controllers/projects/issues_controller_spec.rb +++ b/spec/controllers/projects/issues_controller_spec.rb @@ -8,13 +8,13 @@ describe Projects::IssuesController do describe "GET #index" do context 'external issue tracker' do it 'redirects to the external issue tracker' do - external = double(issues_url: 'https://example.com/issues') + external = double(project_path: 'https://example.com/project') allow(project).to receive(:external_issue_tracker).and_return(external) controller.instance_variable_set(:@project, project) get :index, namespace_id: project.namespace.path, project_id: project - expect(response).to redirect_to('https://example.com/issues') + expect(response).to redirect_to('https://example.com/project') end end |