Sha256: 547d3dbbc22645e509be326599f5a505007876f6bac32a6a31c2787672a33deb

Contents?: true

Size: 1.26 KB

Versions: 47

Compression:

Stored size: 1.26 KB

Contents

# encoding: utf-8

require 'spec_helper'

describe Github::Client do
  let(:github) { Github.new }

  after { reset_authentication_for github }

  it "should return Github::Gists instance" do
    github.gists.should be_a Github::Gists
  end

  it "should return Github::GitData instance" do
    github.git_data.should be_a Github::GitData
  end

  it "should return Github::Issues instance" do
    github.issues.should be_a Github::Issues
  end

  it "should return Github::Orgs instance" do
    github.orgs.should be_a Github::Orgs
  end

  it "should return Github::PullRequests instance" do
    github.pull_requests.should be_a Github::PullRequests
  end

  it "should return Github::Repos instance" do
    github.repos.should be_a Github::Repos
  end

  it "should return Github::Users instance" do
    github.users.should be_a Github::Users
  end

  it "should return Github::Authorizations instance" do
    github.oauth.should be_a Github::Authorizations
  end

  it "should respond to repos" do
    github.should respond_to :repos
  end

  it "should respond to repositories" do
    github.should respond_to :repositories
  end

  it "should respond to git_data" do
    github.should respond_to :git_data
  end

  it "should respond to git" do
    github.should respond_to :git
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
github_api-0.5.0 spec/github/client_spec.rb
github_api-0.5.0.rc1 spec/github/client_spec.rb
github_api-0.4.11 spec/github/client_spec.rb
github_api-0.4.10 spec/github/client_spec.rb
github_api-0.4.9 spec/github/client_spec.rb
github_api-0.4.8 spec/github/client_spec.rb
github_api-0.4.7 spec/github/client_spec.rb