Skip to content

Commit

Permalink
Update user_cas_omniauth_authorize_path request to be post
Browse files Browse the repository at this point in the history
Co-authored-by: Jane Sandberg <[email protected]>
  • Loading branch information
christinach and sandbergja committed Jun 20, 2024
1 parent 7c4a8ba commit 7dea5da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/requests/users_request_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,15 @@
)
allow(User).to receive(:from_omniauth).and_return(user)

get user_cas_omniauth_authorize_path
post user_cas_omniauth_authorize_path
end

after do
logout
end

it 'builds the callback from the CAS endpoint response' do

expect(response.status).to eq(302)
expect(response.headers['Location']).to include(Rails.application.config.cas.url)

Expand Down

0 comments on commit 7dea5da

Please sign in to comment.