Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-01-15 16:38:50 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-01-15 16:38:50 +0400
commit8bfc62fb8b02bde7da97958deb8aeda63581bfce (patch)
tree1ccb80a7780a4d7b888070c690276bf6271d8989 /app/services/test_hook_service.rb
parent37ef33cba18f947699fc3f285397be34861ab51e (diff)
Convert TestHookContext into TestHookService. Added tests
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/services/test_hook_service.rb')
-rw-r--r--app/services/test_hook_service.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/services/test_hook_service.rb b/app/services/test_hook_service.rb
new file mode 100644
index 00000000000..17d86a7a274
--- /dev/null
+++ b/app/services/test_hook_service.rb
@@ -0,0 +1,6 @@
+class TestHookService
+ def execute(hook, current_user)
+ data = GitPushService.new.sample_data(hook.project, current_user)
+ hook.execute(data)
+ end
+end