Skip to content

Commit

Permalink
added test
Browse files Browse the repository at this point in the history
  • Loading branch information
kjgarza committed Nov 11, 2021
1 parent f1a57be commit b9d1914
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/requests/events_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b9d1914

Please sign in to comment.