From c71a7896b1d5ac23785393b486d64902af56d33e Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Wed, 20 Mar 2013 16:41:59 +0200 Subject: [PATCH] fix test button functionality for project -> service -> gitlab ci --- app/controllers/services_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/services_controller.rb b/app/controllers/services_controller.rb index d0df469b..25a06501 100644 --- a/app/controllers/services_controller.rb +++ b/app/controllers/services_controller.rb @@ -26,8 +26,7 @@ class ServicesController < ProjectResourceController end def test - commits = project.repository.commits(project.default_branch, nil, 3) - data = project.post_receive_data(commits.last.id, commits.first.id, "refs/heads/#{project.default_branch}", current_user) + data = GitPushService.new.sample_data(project, current_user) @service = project.gitlab_ci_service @service.execute(data)