diff --git a/spec/requests/events_spec.rb b/spec/requests/events_spec.rb index 072630f10..9f1ab4cc4 100644 --- a/spec/requests/events_spec.rb +++ b/spec/requests/events_spec.rb @@ -235,7 +235,7 @@ end context "with registrant information" do - let(:uri) { "/events" } + let(:uri) { "/events?aggregations=advanced_aggregations" } let(:params) do { "data" => { "type" => "events", "attributes" => { @@ -259,7 +259,7 @@ Event.import sleep 1 - get "#{uri}?aggregations=advanced_aggregations", nil, headers + get uri, nil, headers expect(json.dig("meta", "registrants", 0, "count")).to eq(1) expect(json.dig("meta", "registrants", 0, "id")).to eq("datacite.crossref.citations")