Skip to content

Commit

Permalink
Update Caseflow to Use Updated CE API Gem (#22272)
Browse files Browse the repository at this point in the history
  • Loading branch information
tradesmanhelix authored and youfoundmanesh committed Oct 25, 2024
1 parent 6bb6e05 commit 837fb45
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion app/services/external_api/vbms_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def self.update_document_in_vbms(appeal, uploadable_document)
file_update_payload = ClaimEvidenceFileUpdatePayload.new(
date_va_received_document: Time.zone.now,
document_type_id: uploadable_document.document_type_id,
file_content: File.read(uploadable_document.pdf_location),
file_content_path: uploadable_document.pdf_location,
file_content_source: uploadable_document.source
)

Expand Down
1 change: 0 additions & 1 deletion spec/services/external_api/vbms_service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@
let(:mock_file_update_payload) { instance_double(ClaimEvidenceFileUpdatePayload) }

it "calls the CE API" do
expect(File).to receive(:read).and_return("pdf byte string")
expect(ClaimEvidenceFileUpdatePayload).to receive(:new).and_return(mock_file_update_payload)
expect(VeteranFileUpdater)
.to receive(:update_veteran_file)
Expand Down

0 comments on commit 837fb45

Please sign in to comment.