Sha256: 472d23cc5ea28ab4b7f8871d069c25a7d5d749a5dcae6da248e1dba7c1296b3e

Contents?: true

Size: 522 Bytes

Versions: 1

Compression:

Stored size: 522 Bytes

Contents

require "spec_helper"

RSpec.describe Digicert::CLI::OrderReissuer do
  describe "#create" do
    context "with only order id passed" do
      it "sends create message to digicert order reissuer" do
        order_id = 123_456
        allow(Digicert::OrderReissuer).to receive(:create)

        reissuer = Digicert::CLI::OrderReissuer.new(order_id: order_id)
        reissuer.create

        expect(
          Digicert::OrderReissuer
        ).to have_received(:create).with(order_id: order_id)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
digicert-cli-0.1.0 spec/digicert/order_reissuer_spec.rb