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" }],