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: {