gitlabhq/gitlabhq

View on GitHub
app/contexts/test_hook_context.rb

Summary

Maintainability
A
0 mins
Test Coverage
class TestHookContext < BaseContext
  def execute
    hook = project.hooks.find(params[:id])
    data = GitPushService.new.sample_data(project, current_user)
    hook.execute(data)
  end
end