Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: b562b91e18
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (15 sloc) 0.56 kB
require 'spec_helper'
require 'github-hooker'
describe Github::Hooker do
context "given a valid credential" do
before do
Github::Hooker.stub(:config).and_return({ "user" => "user", "password" => "password" })
end
it "lists the hooks in the given repo" do
list = subject.hooks(:repo => "user/repo")
list[0]["url"].should == "https://api.github.com/repos/user/repo/hooks/157257"
list[1]["url"].should == "https://api.github.com/repos/user/repo/hooks/157271"
end
it "adds a new hook in the given repo"
end
end
Jump to Line
Something went wrong with that request. Please try again.