From b9d19147ed951182fafa713acac237fa87261585 Mon Sep 17 00:00:00 2001 From: kjgarza Date: Thu, 11 Nov 2021 18:14:36 +0100 Subject: [PATCH] added test --- spec/requests/events_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/requests/events_spec.rb b/spec/requests/events_spec.rb index 1802ca357..7189515f5 100644 --- a/spec/requests/events_spec.rb +++ b/spec/requests/events_spec.rb @@ -364,6 +364,12 @@ "datacite.crossref.citations", ) end + + it "has created aggregation" do + get uri, nil, headers + expect(json.dig("meta", "created", 0, "count")).to eq(1) + expect(json.dig("meta", "occurred", 0, "count")).to eq(1) + end end context "with nested attributes" do