Sha256: ef7f5b725fc0ab87438772b2c24a69217bf472e02d8f9255114e4dcc52a83a96
Contents?: true
Size: 1.11 KB
Versions: 7
Compression:
Stored size: 1.11 KB
Contents
# -*- encoding: utf-8 -*- require 'helper' describe Octokit::Client::Users do describe ".timeline" do it "should return the public timeline" do client = Octokit::Client.new stub_get("https://github.com/timeline.json"). to_return(:body => fixture("timeline.json")) events = client.timeline events.first.repository.name.should == "homebrew" end end describe ".user_timeline" do it "should return a user timeline" do client = Octokit::Client.new stub_get("https://github.com/sferik.json"). to_return(:body => fixture("timeline.json")) events = client.user_timeline("sferik") events.first.repository.name.should == "homebrew" end context "when authenticated" do it "should return a user timeline" do client = Octokit::Client.new(:login => "sferik", :token => "OU812") stub_get("https://github.com/sferik.private.json?token=OU812"). to_return(:body => fixture("timeline.json")) events = client.user_timeline("sferik") events.first.repository.name.should == "homebrew" end end end end
Version data entries
7 entries across 7 versions & 3 rubygems