|
1 | 1 | # frozen_string_literal: true
|
2 | 2 |
|
3 | 3 | describe 'routes for users' do
|
4 |
| - describe 'GET /auth/shibboleth' do |
5 |
| - subject { get('/auth/shibboleth') } |
6 |
| - it do |
7 |
| - should route_to({ |
8 |
| - controller: 'omniauth_callbacks', |
9 |
| - action: 'passthru' |
10 |
| - }) |
| 4 | + describe 'Logging in' do |
| 5 | + describe 'GET /auth/shibboleth' do |
| 6 | + subject { get('/auth/shibboleth') } |
| 7 | + it do |
| 8 | + should route_to({ |
| 9 | + controller: 'omniauth_callbacks', |
| 10 | + action: 'passthru' |
| 11 | + }) |
| 12 | + end |
11 | 13 | end
|
12 |
| - end |
13 | 14 |
|
14 |
| - describe 'POST /auth/shibboleth' do |
15 |
| - subject { post('/auth/shibboleth') } |
16 |
| - it do |
17 |
| - should route_to({ |
18 |
| - controller: 'omniauth_callbacks', |
19 |
| - action: 'passthru' |
20 |
| - }) |
| 15 | + describe 'POST /auth/shibboleth' do |
| 16 | + subject { post('/auth/shibboleth') } |
| 17 | + it do |
| 18 | + should route_to({ |
| 19 | + controller: 'omniauth_callbacks', |
| 20 | + action: 'passthru' |
| 21 | + }) |
| 22 | + end |
| 23 | + end |
| 24 | + |
| 25 | + describe 'GET /auth/shibboleth/callback' do |
| 26 | + subject { get('/auth/shibboleth/callback') } |
| 27 | + it { should route_to({ controller: 'omniauth_callbacks', action: 'shibboleth' }) } |
21 | 28 | end
|
22 |
| - end |
23 | 29 |
|
24 |
| - describe 'GET /auth/shibboleth/callback' do |
25 |
| - subject { get('/auth/shibboleth/callback') } |
26 |
| - it { should route_to({ controller: 'omniauth_callbacks', action: 'shibboleth' }) } |
| 30 | + describe 'POST /auth/shibboleth/callback' do |
| 31 | + subject { post('/auth/shibboleth/callback') } |
| 32 | + it { should route_to({ controller: 'omniauth_callbacks', action: 'shibboleth' }) } |
| 33 | + end |
27 | 34 | end
|
28 | 35 |
|
29 |
| - describe 'POST /auth/shibboleth/callback' do |
30 |
| - subject { post('/auth/shibboleth/callback') } |
31 |
| - it { should route_to({ controller: 'omniauth_callbacks', action: 'shibboleth' }) } |
| 36 | + describe 'Logging out' do |
| 37 | + describe 'GET /logout' do |
| 38 | + subject { get('/logout') } |
| 39 | + it { should route_to({ controller: 'devise/sessions', action: 'destroy' }) } |
| 40 | + end |
32 | 41 | end
|
33 | 42 | end
|
0 commit comments