Sha256: 52d1ff28f235a6e17d73299c34518ff6fbdcd817805cba65df1e37f49643bd05

Contents?: true

Size: 735 Bytes

Versions: 5

Compression:

Stored size: 735 Bytes

Contents

require "spec_helper"

RSpec.describe "Order" do
  describe "listing orders" do
    it "retrieves the list of the orders" do
      command = %w(order list --filter common_name:*.ribostetest.com)
      allow(Digicert::CLI::Order).to receive_message_chain(:new, :list)

      Digicert::CLI.start(command)

      expect(Digicert::CLI::Order.new).to have_received(:list)
    end
  end

  describe "finding an order" do
    it "finds a specific order based on the filters params" do
      command = %w(order find --filter common_name:ribosetest.com)
      allow(Digicert::CLI::Order).to receive_message_chain(:new, :find)

      Digicert::CLI.start(command)

      expect(Digicert::CLI::Order.new).to have_received(:find)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
digicert-cli-0.4.2 spec/acceptance/order_spec.rb
digicert-cli-0.4.1 spec/acceptance/order_spec.rb
digicert-cli-0.4.0 spec/acceptance/order_spec.rb
digicert-cli-0.3.0 spec/acceptance/order_spec.rb
digicert-cli-0.2.0 spec/acceptance/order_spec.rb