Sha256: 75d37b1fe282df830fbd588baae9b6e95aaf83259f8532ae26a2933f83dccbb8

Contents?: true

Size: 396 Bytes

Versions: 4

Compression:

Stored size: 396 Bytes

Contents

require "spec_helper"

RSpec.describe "Config" do
  describe "configuring key" do
    it "stores the provided api key" do
      command = %w(config api-key DIGICERT_SECRET_KEY)
      allow(Digicert::CLI::RCFile).to receive(:set_key)

      Digicert::CLI.start(command)

      expect(
        Digicert::CLI::RCFile,
      ).to have_received(:set_key).with("DIGICERT_SECRET_KEY")
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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