Sha256: 298657e8111a0fb80f36a5123ba7ddb698381c66fd0977ffa63983f0acad01c1
Contents?: true
Size: 799 Bytes
Versions: 2
Compression:
Stored size: 799 Bytes
Contents
require 'helper' describe Octokit::Client::Pulls do before do @client = Octokit::Client.new(:login => 'sferik') end describe ".commits" do it "should return all commits" do stub_get("commits/list/sferik/rails_admin/master"). to_return(:body => fixture("commits.json")) commits = @client.commits("sferik/rails_admin") commits.first.author.login.should == "caboteria" end end describe ".commit" do it "should return a commit" do stub_get("commits/show/sferik/rails_admin/3cdfabd973bc3caac209cba903cfdb3bf6636bcd"). to_return(:body => fixture("commit.json")) commit = @client.commit("sferik/rails_admin", "3cdfabd973bc3caac209cba903cfdb3bf6636bcd") commit.first.author.login.should == "caboteria" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
octokit-0.6.1 | spec/octokit/client/commits_spec.rb |
octokit-0.6.0 | spec/octokit/client/commits_spec.rb |