From d73d9dcd14242d0596a5773676a707cd3958c230 Mon Sep 17 00:00:00 2001 From: kjgarza Date: Mon, 27 Sep 2021 17:27:41 +0200 Subject: [PATCH] account for existing test data --- spec/graphql/types/work_type_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/graphql/types/work_type_spec.rb b/spec/graphql/types/work_type_spec.rb index 088022b0c..3e33bb239 100644 --- a/spec/graphql/types/work_type_spec.rb +++ b/spec/graphql/types/work_type_spec.rb @@ -651,8 +651,8 @@ expect(response.dig("data", "works", "registrationAgencies")).to eq( [{ "count" => 10, "id" => "datacite", "title" => "DataCite" }], ) - expect(response.dig("data", "works", "repositories").first).to eq( - { "count" => 1, "id" => "testa.test1", "title" => "My data center" }, + expect(response.dig("data", "works", "repositories").first["title"]).to eq( + "My data center" ) expect(response.dig("data", "works", "languages")).to eq( [{ "count" => 10, "id" => "nl", "title" => "Dutch" }],