Skip to content

Commit

Permalink
mock session nonce in controller spec
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-coggin committed Nov 21, 2023
1 parent 6feb326 commit 771550c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
before do
request.env['devise.mapping'] = Devise.mappings[:user]
session[:gov_one_auth_state] = 'mock_state'
session[:gov_one_auth_nonce] = 'mock_nonce'

allow(GovOneAuthService).to receive(:new).and_return(auth_service)
allow(auth_service).to receive(:tokens).and_return({ 'access_token' => access_token, 'id_token' => id_token })
Expand Down

0 comments on commit 771550c

Please sign in to comment.