Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
kjgarza committed Dec 21, 2021
1 parent b9d1914 commit 037d3ba
Show file tree
Hide file tree
Showing 3 changed files with 107 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/events_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def index
page[:cursor].nil? && page[:number].present? ? page[:number] : nil,
sources: sources,
occurred: occurred,
createdAt: created,
created: created,
prefixes: prefixes,
"citationTypes" => citation_types,
"relationTypes" => relation_types,
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions spec/requests/events_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,12 @@
end

it "has created aggregation" do
post uri, params, headers

Event.import
sleep 2
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
Expand Down

0 comments on commit 037d3ba

Please sign in to comment.