diff options
author | Tomasz Maczukin <tomasz@maczukin.pl> | 2016-01-11 10:20:45 +0100 |
---|---|---|
committer | Tomasz Maczukin <tomasz@maczukin.pl> | 2016-01-11 10:20:45 +0100 |
commit | 96bbc145f31ad029e080ad8903445d81d6c31968 (patch) | |
tree | 216c132372a172594af3a509f5c536b510988c69 /spec | |
parent | 4eb27d7c72d57015c7551a00e34a54cefc2d3db9 (diff) | |
download | gitlab-ce-96bbc145f31ad029e080ad8903445d81d6c31968.tar.gz |
Change commit builds URL in builds API
Diffstat (limited to 'spec')
-rw-r--r-- | spec/requests/api/builds_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/requests/api/builds_spec.rb b/spec/requests/api/builds_spec.rb index 799558d1bdd..587fb74750d 100644 --- a/spec/requests/api/builds_spec.rb +++ b/spec/requests/api/builds_spec.rb @@ -46,11 +46,11 @@ describe API::API, api: true do end end - describe 'GET /projects/:id/builds/commit/:sha' do + describe 'GET /projects/:id/repository/commits/:sha/builds' do context 'authorized user' do it 'should return project builds for specific commit' do project.ensure_ci_commit(commit.sha) - get api("/projects/#{project.id}/builds/commit/#{commit.sha}", user) + get api("/projects/#{project.id}/repository/commits/#{commit.sha}/builds", user) expect(response.status).to eq(200) expect(json_response).to be_an Array @@ -60,7 +60,7 @@ describe API::API, api: true do context 'unauthorized user' do it 'should not return project builds' do project.ensure_ci_commit(commit.sha) - get api("/projects/#{project.id}/builds/commit/#{commit.sha}") + get api("/projects/#{project.id}/repository/commits/#{commit.sha}/builds") expect(response.status).to eq(401) end |