Sha256: 0df5dfacc1f545eb49670268e534dd1e1ab62c3209f8f8d53b4189b355554f74
Contents?: true
Size: 764 Bytes
Versions: 5
Compression:
Stored size: 764 Bytes
Contents
require "spec_helper" RSpec.describe Digicert::DuplicateCertificateFinder do describe ".find" do it "finds the duplicate certificate" do request_id = 123_456_789 stub_digicert_certificate_request_fetch_api(request_id) stub_digicert_order_duplications_api(order_id) certificate = Digicert::DuplicateCertificateFinder.find_by( request_id: request_id, ) expect(certificate.id).not_to be_nil end end def order_id # Fetching an existing request returns the fixtures file we # wrote as certificate_request.json, and that order_id is # being used to fetched the duplications, so for this use # case let's keep it simple and hardcode the value for now # @order_id ||= 542757 end end
Version data entries
5 entries across 5 versions & 1 rubygems