Commit 123f9c4a2940e4f85beceffcaabfad67eddbd692

Authored by Rafael Manzo
1 parent d86effa3

Fix request headers for push notify acceptance

Signed off by: Eduardo Araújo <duduktamg@hotmail.com>
Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
features/step_definitions/repository_steps.rb
@@ -162,11 +162,11 @@ When(/^I get the Creation Date information as &quot;(.*?)&quot;$/) do |variable| @@ -162,11 +162,11 @@ When(/^I get the Creation Date information as &quot;(.*?)&quot;$/) do |variable|
162 end 162 end
163 163
164 When(/^I push some commits to the repository$/) do 164 When(/^I push some commits to the repository$/) do
165 - post repository_notify_push_path(id: @repository.id) 165 + post repository_notify_push_path(id: @repository.id), {}, {'HTTP_X_GITLAB_EVENT' => 'Push Hook'}
166 end 166 end
167 167
168 When(/^I push some commits to an invalid repository$/) do 168 When(/^I push some commits to an invalid repository$/) do
169 - @response = post repository_notify_push_path(id: 0) 169 + @response = post repository_notify_push_path(id: 0), {}, {'HTTP_X_GITLAB_EVENT' => 'Push Hook'}
170 end 170 end
171 171
172 Then(/^I should see the sample metric's name$/) do 172 Then(/^I should see the sample metric's name$/) do