diff --git a/spec/requests/swagger_spec.rb b/spec/requests/swagger_spec.rb index 7e9426dfba0..f727a7a2726 100644 --- a/spec/requests/swagger_spec.rb +++ b/spec/requests/swagger_spec.rb @@ -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 @@ -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