Sha256: 7f790da90190537fdc27a74ff87eb35537f147612514fb505f9f81ff710c4490

Contents?: true

Size: 546 Bytes

Versions: 1

Compression:

Stored size: 546 Bytes

Contents

require "spec_helper"
require "digicert/base"

RSpec.describe "Digicert::Actions::ALL" do
  describe ".all" do
    it "retrieves the list of resources" do
      stub_digicert_organization_list_api
      organizations = Digicert::TestAllAction.all

      expect(organizations.count).to eq(2)
      expect(organizations.first.name).not_to be_nil
    end
  end

  module Digicert
    class TestAllAction < Digicert::Base
      include Digicert::Actions::All

      private

      def resource_path
        "organization"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
digicert-0.1.1 spec/digicert/actions/all_spec.rb