test_hook_context.rb 191 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 class TestHookContext < BaseContext def execute hook = project.hooks.find(params[:id]) data = GitPushService.new.sample_data(project, current_user) hook.execute(data) end end