gitlabhq/gitlabhq — pull request #3089 by p-schneider (2013-02-26 15:01:50+00:00)
Title: Update app/contexts/test_hook_context.rb

"Test Hook" did not work (http://gitlabserver/someproject/hooks/1/test)
related to the changes in 70e3bffd95eb5736dd108e0836abaa85a2f1c742

It failed with this error before i fixed it:
```
Started GET "/someproject/hooks/1/test" for 192.168.1.100 at 2013-02-26 15:24:26 +0100
Processing by HooksController#test as HTML
Parameters: {"project_id"=>"someproject", "id"=>"1"}
Completed 500 Internal Server Error in 118ms

NoMethodError (undefined method `post_receive_data' for #):
app/contexts/test_hook_context.rb:5:in `execute'
app/controllers/hooks_controller.rb:26:in `test'
```