Sha256: 9427dfa01ce0d7f0467bebab09cc5cbe8bb1e6189897789bdf7d4ab1efb9819c

Contents?: true

Size: 588 Bytes

Versions: 9

Compression:

Stored size: 588 Bytes

Contents

require "spec_helper"
require "digicert/base"

RSpec.describe "Digicert::Actions::Fetch" do
  describe ".fetch" do
    it "fetch a specified resource" do
      resource_id = 123_456_789

      stub_digicert_container_fetch_api(resource_id)
      resource = Digicert::TestFetchAction.fetch(resource_id)

      expect(resource.id).not_to be_nil
      expect(resource.name).not_to be_nil
    end
  end

  module Digicert
    class TestFetchAction < Digicert::Base
      include Digicert::Actions::Fetch

      private

      def resource_path
        "container"
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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