From b90bdcc36ac60fed65c520d89907b88d6ea04131 Mon Sep 17 00:00:00 2001 From: Zach Wolfenbarger Date: Tue, 28 May 2024 17:04:17 -0500 Subject: [PATCH] reorder spec --- .../controllers/api/v1/aggregations_controller_spec.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/controllers/api/v1/aggregations_controller_spec.rb b/spec/controllers/api/v1/aggregations_controller_spec.rb index df9052ac5..50b08d047 100644 --- a/spec/controllers/api/v1/aggregations_controller_spec.rb +++ b/spec/controllers/api/v1/aggregations_controller_spec.rb @@ -63,6 +63,11 @@ expect(mock_agg).to have_received(:send_aggregation_request) end + it 'stores the task_id from the client response' do + post :create, params: create_params + expect(Aggregation.first.task_id).to eq('asdf-1234-asdf') + end + context 'when there is an existing aggregation for that user and workflow' do let!(:existing_agg) { create(:aggregation, workflow: workflow, user: authorized_user) } @@ -85,11 +90,6 @@ expect(response.status).to eq(503) end end - - it 'stores the task_id from the client response' do - post :create, params: create_params - expect(Aggregation.first.task_id).to eq('asdf-1234-asdf') - end end describe '#update' do