Permalink
Browse files

fix spec

  • Loading branch information...
1 parent 2874d19 commit 57992e124f950ca4a9158cdff239d9a8d79c8daf @pxlpnk committed Jul 8, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 spec/lib/github_api_spec.rb
@@ -13,11 +13,13 @@
it "returns the branches of a Github repository" do
response = []
- response << {:name => "foo"}
- response << {:name => "bar"}
+ response << {"name" => "foo"}
+ response << {"name" => "bar"}
@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

0 comments on commit 57992e1

Please sign in to comment.