Skip to content

Commit

Permalink
reorder spec
Browse files Browse the repository at this point in the history
  • Loading branch information
zwolf committed May 28, 2024
1 parent d97e027 commit b90bdcc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/controllers/api/v1/aggregations_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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) }

Expand All @@ -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
Expand Down

0 comments on commit b90bdcc

Please sign in to comment.