From d53cb9dd3b1a1b93bb507668055b28e026f60f74 Mon Sep 17 00:00:00 2001 From: Suzanne Vogt Date: Tue, 21 Sep 2021 15:23:25 -0400 Subject: [PATCH] Issue 1341 - DOI Record generates errors. (Update a test to pass. --- spec/requests/datacite_dois_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/requests/datacite_dois_spec.rb b/spec/requests/datacite_dois_spec.rb index 4b96f707d..5e9d80b39 100644 --- a/spec/requests/datacite_dois_spec.rb +++ b/spec/requests/datacite_dois_spec.rb @@ -2582,7 +2582,7 @@ expect(last_response.status).to eq(201) expect(json.dig("data", "attributes", "doi")).to eq("10.14454/10703") - expect(json.dig("data", "attributes", "titles")).to eq("title" => "Referee report. For: RESEARCH-3482 [version 5; referees: 1 approved, 1 approved with reservations]") + expect(json.dig("data", "attributes", "titles")).to eq([{"title" => "Referee report. For: RESEARCH-3482 [version 5; referees: 1 approved, 1 approved with reservations]"}]) expect(json.dig("data", "attributes", "url")).to eq("http://www.bl.uk/pdf/patspec.pdf") expect(json.dig("data", "attributes", "source")).to eq("test") expect(json.dig("data", "attributes", "state")).to eq("findable")