From 99045fe6bbb90aefad5c02055f8d37fb7f7c23f7 Mon Sep 17 00:00:00 2001 From: John Bramley <20125855+bramleyjl@users.noreply.github.com> Date: Fri, 6 Dec 2024 09:38:01 -0700 Subject: [PATCH] updates swagger spec --- spec/requests/swagger_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/requests/swagger_spec.rb b/spec/requests/swagger_spec.rb index ef94d6879d8..372e80076a4 100644 --- a/spec/requests/swagger_spec.rb +++ b/spec/requests/swagger_spec.rb @@ -108,6 +108,12 @@ CGI.escape(SignIn::RefreshTokenEncryptor.new(refresh_token: session_container.refresh_token).perform) end let(:refresh_token_param) { { refresh_token: } } + let(:mpi_profile) { build(:mpi_profile, icn: user_verification.user_account.icn) } + let(:find_profile_response) { create(:find_profile_response, profile: mpi_profile) } + + before do + allow_any_instance_of(MPI::Service).to receive(:find_profile_by_identifier).and_return(find_profile_response) + end it 'refreshes the session and returns new tokens' do expect(subject).to validate(