Sha256: 00a73b174505f160b29a64bdc09d28f94279e3e7d9545aa5cc4229f0938d41df

Contents?: true

Size: 555 Bytes

Versions: 5

Compression:

Stored size: 555 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.pull_requests).to be_a BitBucket::Repos::PullRequest
    expect(client.oauth).to be_a BitBucket::Request::OAuth
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bitbucket_rest_api2-0.9.5 spec/bitbucket_rest_api/client_spec.rb
bitbucket_rest_api2-0.9.1 spec/bitbucket_rest_api/client_spec.rb
bitbucket_rest_api2-0.2.2 spec/bitbucket_rest_api/client_spec.rb
bitbucket_rest_api2-0.2.1 spec/bitbucket_rest_api/client_spec.rb
bitbucket_rest_api2-0.2.0 spec/bitbucket_rest_api/client_spec.rb