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.8.6 spec/github/client_spec.rb
github_api-0.8.5 spec/github/client_spec.rb
github_api-0.8.4 spec/github/client_spec.rb
github_api-0.8.3 spec/github/client_spec.rb
github_api-0.8.2 spec/github/client_spec.rb
github_api-0.8.1 spec/github/client_spec.rb
github_api-0.8.0 spec/github/client_spec.rb
github_api-0.7.2 spec/github/client_spec.rb
github_api-0.7.1 spec/github/client_spec.rb
github_api-0.7.0 spec/github/client_spec.rb
github_api-0.6.5 spec/github/client_spec.rb
github_api-0.6.4 spec/github/client_spec.rb
github_api-0.6.3 spec/github/client_spec.rb
github_api-0.6.2 spec/github/client_spec.rb
github_api-0.6.1 spec/github/client_spec.rb
github_api-0.6.0 spec/github/client_spec.rb
github_api-0.5.4 spec/github/client_spec.rb
github_api-0.5.3 spec/github/client_spec.rb
github_api-0.5.2 spec/github/client_spec.rb
github_api-0.5.1 spec/github/client_spec.rb