Sha256: 0fcccbc85fbcd3114319d7948fe4579549c7773d3056d788815d8d73f003be5d

Contents?: true

Size: 605 Bytes

Versions: 4

Compression:

Stored size: 605 Bytes

Contents

require 'spec_helper'

describe BitBucket::Client do
  let(:client) { described_class.new }

  it "returns the a new object of the correct class" do
    expect(client.issues).to be_a BitBucket::Issues
    expect(client.repos).to be_a BitBucket::Repos
    expect(client.users).to be_a BitBucket::Users
    expect(client.user_api).to be_a BitBucket::User
    expect(client.invitations).to be_a BitBucket::Invitations
    expect(client.teams).to be_a BitBucket::Teams
    expect(client.pull_requests).to be_a BitBucket::Repos::PullRequest
    expect(client.oauth).to be_a BitBucket::Request::OAuth
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
zz_bitbucket_rest_api-0.1.11 spec/bitbucket_rest_api/client_spec.rb
zz_bitbucket_rest_api-0.1.10 spec/bitbucket_rest_api/client_spec.rb
zz_bitbucket_rest_api-0.1.9 spec/bitbucket_rest_api/client_spec.rb
zz_bitbucket_rest_api-0.1.8 spec/bitbucket_rest_api/client_spec.rb