From c851ffd0f21714d9c6e3e4908e6183478f78ddc2 Mon Sep 17 00:00:00 2001 From: CEdwardsBlasikiewicz Date: Mon, 17 Jun 2024 13:43:55 +1000 Subject: [PATCH] spec --- spec/services/catalogue_services_client_spec.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spec/services/catalogue_services_client_spec.rb b/spec/services/catalogue_services_client_spec.rb index e213d3ed..ff3edc4e 100644 --- a/spec/services/catalogue_services_client_spec.rb +++ b/spec/services/catalogue_services_client_spec.rb @@ -5,6 +5,13 @@ RSpec.describe CatalogueServicesClient do subject(:service) { described_class.new } + describe "#get_holdings" do + it "returns holdings records" do + pp service.get_holdings(instance_id: "08aed703-3648-54d0-80ef-fddb3c635731") + expect(service.get_holdings(instance_id: "08aed703-3648-54d0-80ef-fddb3c635731").size).to eq 5 + end + end + # WebMock.stub_request(:get, "http://catservices.test/catalogue-services/folio/instance/6bf69425-293d-5e3f-a050-16124aca9a4e"). # with( # headers: {