Skip to content

Commit

Permalink
Resolving PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
AShukla-GSA committed Dec 3, 2024
1 parent 1165762 commit 0ecc921
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,15 +289,16 @@
before do
allow(request_class).to receive(:new).and_call_original
allow(I18n).to receive(:locale).and_return(expected_language)
allow(DocumentCaptureSession).to receive(:find_by).and_return(document_capture_session)
end

it 'does not create a DocumentRequest when valid capture app exists' do
document_capture_session.socure_docv_capture_app_url = fake_capture_app_url
document_capture_session.save
dcs = create(:document_capture_session, uuid: user.id)
dcs.socure_docv_capture_app_url = fake_capture_app_url
dcs.save
allow(DocumentCaptureSession).to receive(:find_by).and_return(dcs)
get(:show)
expect(request_class).not_to have_received(:new)
expect(document_capture_session.socure_docv_capture_app_url).to eq(fake_capture_app_url)
expect(dcs.socure_docv_capture_app_url).to eq(fake_capture_app_url)
end
end
end
Expand Down

0 comments on commit 0ecc921

Please sign in to comment.