Sha256: 087cf2018771b793b0e128b7515f4c4a72669eae13cfa338a47e3093122b73f0

Contents?: true

Size: 682 Bytes

Versions: 9

Compression:

Stored size: 682 Bytes

Contents

require "spec_helper"

RSpec.describe "Order Management" do
  describe "retrieving a certificate order", api_call: true do
    it "retrieves the details for a specific certificate order" do
      order = Digicert::Order.fetch(order_id)

      expect(order.product_name_id).to eq("ssl_plus")
      expect(order.certificate.common_name).to eq("ribosetest.com")
      expect(order.organization.display_name).to eq("Ribose Inc.")
    end
  end

  def order_id
    @order_id ||= orders.first.id
  end

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

Version data entries

9 entries across 9 versions & 1 rubygems

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