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