circleci
42 of 69 new or added lines in 8 files covered. (60.87%)
248 existing lines in 22 files now uncovered.2825 of 3104 relevant lines covered (91.01%)
536.18 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
|