gitlabhq/app/contexts/test_hook_context.rb
Dmitriy Zaporozhets 0cf0487d65 Fix TestHookContext
2013-02-26 23:04:14 +02:00

8 lines
191 B
Ruby

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