Fix specs
This commit is contained in:
parent
7545190c8a
commit
297f969bab
|
@ -10,7 +10,7 @@ module Ci
|
|||
|
||||
gl_project = ::Project.find(@project.gitlab_id)
|
||||
gl_project.build_missing_services
|
||||
gl_project.gitlab_ci_service.update_attributes(active: true, token: @project.token)
|
||||
gl_project.gitlab_ci_service.update_attributes(active: true)
|
||||
end
|
||||
|
||||
if forked_project
|
||||
|
|
|
@ -89,7 +89,7 @@ describe API::API, api: true do
|
|||
|
||||
it 'returns projects in the correct order when ci_enabled_first parameter is passed' do
|
||||
[project, project2, project3].each{ |project| project.build_missing_services }
|
||||
project2.gitlab_ci_service.update(active: true, token: "token")
|
||||
project2.gitlab_ci_service.update(active: true)
|
||||
get api('/projects', user), { ci_enabled_first: 'true' }
|
||||
expect(response.status).to eq(200)
|
||||
expect(json_response).to be_an Array
|
||||
|
|
Loading…
Reference in New Issue