push
circleci
3 of 3 new or added lines in 1 file covered. (100.0%)
191 existing lines in 11 files now uncovered.2827 of 3093 relevant lines covered (91.4%)
486.73 hits per line
| 1 |
# frozen_string_literal: true
|
|
|
UNCOV
2
|
class Users::MediafluxCallbacksController < ApplicationController |
2✔ |
|
UNCOV
3
|
def passthru |
2✔ |
|
UNCOV
4
|
session[:original_path] = params["path"] |
1✔ |
|
UNCOV
5
|
redirect_to session[:cas_login_url], allow_other_host: true |
1✔ |
|
UNCOV
6
|
end
|
|
| 7 |
|
|
|
UNCOV
8
|
def cas |
2✔ |
|
UNCOV
9
|
ticket = params[:ticket]
|
2✔ |
|
UNCOV
10
|
uri = URI.parse(session[:cas_validation_url]) |
2✔ |
|
UNCOV
11
|
token = "#{uri.query}#{ticket}"
|
2✔ |
|
UNCOV
12
|
current_user.mediaflux_login(token, session) |
2✔ |
|
UNCOV
13
|
redirect_to(session["original_path"] || dashboard_path)
|
2✔ |
|
UNCOV
14
|
end
|
|
|
UNCOV
15
|
end
|