push
circleci
0 of 33 new or added lines in 1 file covered. (0.0%)
9374 existing lines in 213 files now uncovered.47 of 9753 relevant lines covered (0.48%)
0.01 hits per line
| 1 |
# frozen_string_literal: true
|
|
| 2 |
|
|
|
UNCOV
3
|
class SessionsController < Devise::SessionsController |
× |
| 4 |
# DELETE /resource/sign_out
|
|
|
UNCOV
5
|
def destroy |
× |
|
UNCOV
6
|
@provider = current_user.provider
|
× |
|
UNCOV
7
|
super
|
× |
|
UNCOV
8
|
end
|
× |
| 9 |
|
|
|
UNCOV
10
|
private |
× |
| 11 |
|
|
|
UNCOV
12
|
def respond_to_on_destroy |
× |
| 13 |
# We actually need to hardcode this as Rails default responder doesn't
|
|
| 14 |
# support returning empty response on GET request
|
|
|
UNCOV
15
|
respond_to do |format|
|
× |
|
UNCOV
16
|
format.all { head :no_content }
|
× |
|
UNCOV
17
|
format.any(*navigational_formats) { redirect_to after_sign_out_path_for(@provider), allow_other_host: true }
|
× |
|
UNCOV
18
|
end
|
× |
|
UNCOV
19
|
end
|
× |
|
UNCOV
20
|
end
|
× |