Sha256: ec5945d1445bc35733b3fdbc86c5756a61950d9e7b0cae052d6024d22f359019
Contents?: true
Size: 1.03 KB
Versions: 10
Compression:
Stored size: 1.03 KB
Contents
# -*- encoding: utf-8 -*- require 'helper' describe Octokit::Client::Events do before do @client = Octokit::Client.new(:login => 'sferik') end describe ".public_events" do it "should return all public events" do stub_get("/events"). to_return(:body => fixture("v3/public_events.json")) public_events = @client.public_events public_events.first.id.should == '1513284759' end end describe ".user_events" do it "should return all user events" do stub_get("/users/sferik/events"). to_return(:body => fixture("v3/user_events.json")) user_events = @client.user_events('sferik') user_events.first.id.should == '1525888969' end end describe ".repository_events" do it "should return events for a repository" do stub_get("/repos/sferik/rails_admin/events"). to_return(:body => fixture("v3/repo_events.json")) repo_events = @client.repository_events("sferik/rails_admin") repo_events.first.type.should == "IssuesEvent" end end end
Version data entries
10 entries across 10 versions & 1 rubygems