Sha256: ae93fc7fb9d2ae1f5a6d77f8495a3e701a8f3c2bfa0eefbe591a7dbaaaa4046d

Contents?: true

Size: 491 Bytes

Versions: 3

Compression:

Stored size: 491 Bytes

Contents

require 'spec_helper'
require 'http_helper'


describe(BugherdClient::Resources::V2::Organization) do

  let(:client) do
      client = BugherdClient::Client.new(api_key: 'testing')
  end

  context 'get', vcr: { cassette_name: "organizations_get", record: :new_episodes } do

    it 'should return the id and name of the organization' do
      response = client.organizations.get
      expect(response.id).to    eq(21203)
      expect(response.name).to  eq('testCloud')
    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bugherd_client-0.0.10 spec/bugherd_client/v2/organization_spec.rb
bugherd_client-0.0.9 spec/bugherd_client/v2/organization_spec.rb
bugherd_client-0.0.8 spec/bugherd_client/v2/organization_spec.rb