Skip to content

Commit

Permalink
fix spec
Browse files Browse the repository at this point in the history
  • Loading branch information
pxlpnk committed Jul 8, 2012
1 parent 2874d19 commit 57992e1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions spec/lib/github_api_spec.rb
Expand Up @@ -13,11 +13,13 @@


it "returns the branches of a Github repository" do it "returns the branches of a Github repository" do
response = [] response = []
response << {:name => "foo"} response << {"name" => "foo"}
response << {:name => "bar"} response << {"name" => "bar"}
@api.class.should_receive(:get).with("/repos/#{@options[:owner]}/#{@options[:repository]}/branches?access_token=#{@options[:token]}",{}).and_return(response) @api.class.should_receive(:get).with("/repos/#{@options[:owner]}/#{@options[:repository]}/branches?access_token=#{@options[:token]}",{}).and_return(response)


@api.get_branches branches = @api.get_branches
branches.should include "foo"
branches.should include "bar"
end end


end end

0 comments on commit 57992e1

Please sign in to comment.