diff --git a/spec/requests/saml_sessions_spec.rb b/spec/requests/saml_sessions_spec.rb index 2b82be6c7a..744ae8e2e6 100644 --- a/spec/requests/saml_sessions_spec.rb +++ b/spec/requests/saml_sessions_spec.rb @@ -10,7 +10,10 @@ let(:provider_details_api_reponse) { api_response.to_json } let(:enable_mock_saml) { false } - before { allow(Rails.configuration.x.laa_portal).to receive(:mock_saml).and_return(enable_mock_saml) } + before do + allow(Rails.configuration.x.laa_portal).to receive(:mock_saml).and_return(enable_mock_saml) + Redis.new(url: Rails.configuration.x.redis.page_history_url).flushdb + end describe "DELETE /providers/sign_out" do subject(:delete_request) { delete destroy_provider_session_path }