Sha256: 28aaa6fc9683218053e96dd99167336a4d786f3e24765a15bc2567bed460f173

Contents?: true

Size: 705 Bytes

Versions: 9

Compression:

Stored size: 705 Bytes

Contents

require "spec_helper"

RSpec.describe "Request Management" do
  describe "fetching a specific request", api_call: true do
    it "fetches the details for a specific request" do
      request = Digicert::CertificateRequest.fetch(request_id)

      expect(request.status).to eq("approved")
      expect(request.order.organization.name).to eq("Ribose Inc.")
      expect(request.order.certificate.common_name).to eq("ribosetest.com")
    end
  end

  def request_id
    @request_id ||= requests.first.id
  end

  def requests
    # We are intentionally making this API call to ensure
    # the `.all` interface is working as it should have.
    #
    @requests ||= Digicert::CertificateRequest.all
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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