Skip to content

Commit

Permalink
Merge pull request #6325 from ministryofjustice/fix/flickering-saml-t…
Browse files Browse the repository at this point in the history
…ests

Fix: Flickering SAML tests
  • Loading branch information
colinbruce authored Feb 7, 2024
2 parents f655516 + 8b9c65f commit f071637
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/requests/saml_sessions_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit f071637

Please sign in to comment.