From 123f9c4a2940e4f85beceffcaabfad67eddbd692 Mon Sep 17 00:00:00 2001 From: Rafael Reggiani Manzo Date: Wed, 25 Nov 2015 16:04:55 -0200 Subject: [PATCH] Fix request headers for push notify acceptance --- features/step_definitions/repository_steps.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/step_definitions/repository_steps.rb b/features/step_definitions/repository_steps.rb index b12f20b..aae714e 100644 --- a/features/step_definitions/repository_steps.rb +++ b/features/step_definitions/repository_steps.rb @@ -162,11 +162,11 @@ When(/^I get the Creation Date information as "(.*?)"$/) do |variable| end When(/^I push some commits to the repository$/) do - post repository_notify_push_path(id: @repository.id) + post repository_notify_push_path(id: @repository.id), {}, {'HTTP_X_GITLAB_EVENT' => 'Push Hook'} end When(/^I push some commits to an invalid repository$/) do - @response = post repository_notify_push_path(id: 0) + @response = post repository_notify_push_path(id: 0), {}, {'HTTP_X_GITLAB_EVENT' => 'Push Hook'} end Then(/^I should see the sample metric's name$/) do -- libgit2 0.21.2