From 8883531e1da734b5619cbcf2adff739796e215e1 Mon Sep 17 00:00:00 2001 From: Suzanne Vogt Date: Thu, 19 Jan 2023 19:54:28 -0500 Subject: [PATCH] Prefix bug: fix a test. --- spec/graphql/types/member_type_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/graphql/types/member_type_spec.rb b/spec/graphql/types/member_type_spec.rb index 66e86c0ef..27a005816 100644 --- a/spec/graphql/types/member_type_spec.rb +++ b/spec/graphql/types/member_type_spec.rb @@ -239,8 +239,10 @@ expect(repository1.fetch("software")).to eq(["dataverse"]) expect(response.dig("data", "member", "prefixes", "totalCount")).to eq(4) + # Remember when writing tests that the creation of a client will assign a prefix to that provider/client. + # Then when we assign 3 more prefixes ot the provider, the count will be 4 total. expect(response.dig("data", "member", "prefixes", "years")).to eq( - [{ "count" => 3, "id" => current_year }], + [{ "count" => 4, "id" => current_year }], ) expect(response.dig("data", "member", "prefixes", "nodes").length).to eq( 4,