gitlab-org--gitlab-foss/app/services/test_hook_service.rb
Dmitriy Zaporozhets 8bfc62fb8b
Convert TestHookContext into TestHookService. Added tests
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-01-15 14:38:50 +02:00

6 lines
159 B
Ruby

class TestHookService
def execute(hook, current_user)
data = GitPushService.new.sample_data(hook.project, current_user)
hook.execute(data)
end
end