Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: b562b91e18
Fetching contributors…

Cannot retrieve contributors at this time

8 lines (6 sloc) 0.399 kb
def fixture_file(name)
File.read(File.expand_path("../../../spec/fixtures/#{name}", __FILE__))
end
WebMock.stub_request(:get, "https://user:password@api.github.com/repos/user/repo/hooks").
with(:headers => {'Accept'=>'*/*; q=0.5, application/xml', 'Accept-Encoding'=>'gzip, deflate', 'User-Agent'=>'Ruby'}).
to_return(:status => 200, :body => fixture_file("list_hooks.json"), :headers => {})
Jump to Line
Something went wrong with that request. Please try again.