Fix specs

This commit is contained in:
Kamil Trzcinski 2015-09-24 16:25:40 +02:00
parent 7545190c8a
commit 297f969bab
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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