Sha256: de9b58efc1458f60efddc2c5e412d4c586037d3feb4c4f33b3d18584c3ae0791

Contents?: true

Size: 650 Bytes

Versions: 9

Compression:

Stored size: 650 Bytes

Contents

require "spec_helper"

RSpec.describe "Organization Management" do
  describe "fetching an organization", api_call: true do
    it "fetches the organization details" do
      organizations = Digicert::Organization.all
      organization = Digicert::Organization.fetch(organizations.first.id)

      expect(organization.name).to eq("Ribose Inc.")
      expect(organization.id).to eq(organization_id)
      expect(organization.container.id).to eq(container_id)
    end
  end

  def container_id
    @container_id ||= ENV["DIGICERT_CONTAINER_ID"].to_i
  end

  def organization_id
    @organization_id ||= ENV["DIGICERT_ORGANIZATION_ID"].to_i
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
digicert-1.0.0 spec/requests/organization_management_spec.rb
digicert-0.5.0 spec/requests/organization_management_spec.rb
digicert-0.4.1 spec/requests/organization_management_spec.rb
digicert-0.4.0 spec/requests/organization_management_spec.rb
digicert-0.3.1 spec/requests/organization_management_spec.rb
digicert-0.3.0 spec/requests/organization_management_spec.rb
digicert-0.2.0 spec/requests/organization_management_spec.rb
digicert-0.1.2 spec/requests/organization_management_spec.rb
digicert-0.1.1 spec/requests/organization_management_spec.rb