Skip to content

Commit

Permalink
put back deleted test
Browse files Browse the repository at this point in the history
  • Loading branch information
holdenhinkle committed Feb 14, 2025
1 parent ddb78c0 commit 871b543
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,24 @@
end
end

context 'When submitting a valid request with the accredited organization and individual ids' do
before do
accredited_organization = create(:accredited_organization)
accredited_individual = create(:accredited_individual)
params[:pdf_generator2122][:representative][:organization_id] = accredited_organization.id
params[:pdf_generator2122][:representative][:id] = accredited_individual.id
post(base_path, params:)
end

it 'responds with an ok status' do
expect(response).to have_http_status(:ok)
end

it 'responds with a PDF' do
expect(response.content_type).to eq('application/pdf')
end
end

context 'when triggering validation errors' do
context 'when submitting without the veteran first name for a single validation error' do
before do
Expand Down

0 comments on commit 871b543

Please sign in to comment.