Skip to content

Commit

Permalink
fix swagger specs
Browse files Browse the repository at this point in the history
  • Loading branch information
anniebtran committed Sep 6, 2024
1 parent 9e46eed commit 9b5353d
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions spec/requests/swagger_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1397,34 +1397,6 @@
end
end

describe 'decision review evidence upload' do
it 'supports uploading a file' do
VCR.use_cassette('decision_review/200_pdf_validation') do
expect(subject).to validate(
:post,
'/v0/decision_review_evidence',
200,
headers.update(
'_data' => {
'decision_review_evidence_attachment' => {
'file_data' => fixture_file_upload('spec/fixtures/pdf_fill/extras.pdf')
}
}
)
)
end
end

it 'returns a 400 if no attachment data is given' do
expect(subject).to validate(
:post,
'/v0/decision_review_evidence',
400,
headers
)
end
end

describe 'secure messaging' do
include SM::ClientHelpers

Expand Down Expand Up @@ -3381,5 +3353,33 @@
Timecop.return
end
end

describe 'decision review evidence upload' do
it 'supports uploading a file' do
VCR.use_cassette('decision_review/200_pdf_validation') do
expect(subject).to validate(
:post,
'/v1/decision_review_evidence',
200,
headers.update(
'_data' => {
'decision_review_evidence_attachment' => {
'file_data' => fixture_file_upload('spec/fixtures/pdf_fill/extras.pdf')
}
}
)
)
end
end

it 'returns a 400 if no attachment data is given' do
expect(subject).to validate(
:post,
'/v1/decision_review_evidence',
400,
headers
)
end
end
end
end

0 comments on commit 9b5353d

Please sign in to comment.