summaryrefslogtreecommitdiff
path: root/spec/requests/projects
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-07-14 16:45:46 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-07-14 16:45:46 +0800
commitd7bbee7593ee54a9685c9eded00b121cca3913be (patch)
treeca958768e75674faf1412520c402a5ae5b6d8173 /spec/requests/projects
parente01c421b911a46774f8c5be92d383d8da14750c3 (diff)
downloadgitlab-ce-d7bbee7593ee54a9685c9eded00b121cca3913be.tar.gz
Update routes based on feedback from:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5142#note_13058785 And note that job/build_name could contain `/`
Diffstat (limited to 'spec/requests/projects')
-rw-r--r--spec/requests/projects/artifacts_controller_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/requests/projects/artifacts_controller_spec.rb b/spec/requests/projects/artifacts_controller_spec.rb
index d44901289d8..574b7028617 100644
--- a/spec/requests/projects/artifacts_controller_spec.rb
+++ b/spec/requests/projects/artifacts_controller_spec.rb
@@ -2,7 +2,7 @@ require 'spec_helper'
require_relative '../shared/artifacts_context'
describe Projects::ArtifactsController do
- describe 'GET /:project/artifacts/:ref/:build_name/browse' do
+ describe 'GET /:project/builds/artifacts/:ref_name/browse?job=name' do
include_context 'artifacts from ref and build name'
before do
@@ -10,13 +10,13 @@ describe Projects::ArtifactsController do
end
def path_from_ref(
- ref = pipeline.sha, build_name = build.name, path = 'browse')
+ ref = pipeline.sha, job = build.name, path = 'browse')
search_namespace_project_artifacts_path(
project.namespace,
project,
ref,
- build_name,
- path)
+ path,
+ job: job)
end
context '404' do