-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Michael Cain
committed
Aug 9, 2023
1 parent
5531dc8
commit 1049c5b
Showing
2 changed files
with
34 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,42 @@ | ||
# frozen_string_literal: true | ||
|
||
describe 'routes for users' do | ||
describe 'GET /auth/shibboleth' do | ||
subject { get('/auth/shibboleth') } | ||
it do | ||
should route_to({ | ||
controller: 'omniauth_callbacks', | ||
action: 'passthru' | ||
}) | ||
describe 'Logging in' do | ||
describe 'GET /auth/shibboleth' do | ||
subject { get('/auth/shibboleth') } | ||
it do | ||
should route_to({ | ||
controller: 'omniauth_callbacks', | ||
action: 'passthru' | ||
}) | ||
end | ||
end | ||
end | ||
|
||
describe 'POST /auth/shibboleth' do | ||
subject { post('/auth/shibboleth') } | ||
it do | ||
should route_to({ | ||
controller: 'omniauth_callbacks', | ||
action: 'passthru' | ||
}) | ||
describe 'POST /auth/shibboleth' do | ||
subject { post('/auth/shibboleth') } | ||
it do | ||
should route_to({ | ||
controller: 'omniauth_callbacks', | ||
action: 'passthru' | ||
}) | ||
end | ||
end | ||
|
||
describe 'GET /auth/shibboleth/callback' do | ||
subject { get('/auth/shibboleth/callback') } | ||
it { should route_to({ controller: 'omniauth_callbacks', action: 'shibboleth' }) } | ||
end | ||
end | ||
|
||
describe 'GET /auth/shibboleth/callback' do | ||
subject { get('/auth/shibboleth/callback') } | ||
it { should route_to({ controller: 'omniauth_callbacks', action: 'shibboleth' }) } | ||
describe 'POST /auth/shibboleth/callback' do | ||
subject { post('/auth/shibboleth/callback') } | ||
it { should route_to({ controller: 'omniauth_callbacks', action: 'shibboleth' }) } | ||
end | ||
end | ||
|
||
describe 'POST /auth/shibboleth/callback' do | ||
subject { post('/auth/shibboleth/callback') } | ||
it { should route_to({ controller: 'omniauth_callbacks', action: 'shibboleth' }) } | ||
describe 'Logging out' do | ||
describe 'GET /logout' do | ||
subject { get('/logout') } | ||
it { should route_to({ controller: 'sessions', action: 'destroy' }) } | ||
end | ||
end | ||
end |