circleci
55 of 72 new or added lines in 9 files covered. (76.39%)
5 existing lines in 2 files now uncovered.5067 of 5386 relevant lines covered (94.08%)
1515.64 hits per line
1 |
# frozen_string_literal: true
|
|
2 |
|
|
|
module OmniAuth |
3✔ |
|
module Strategies |
3✔ |
|
class Alma |
3✔ |
|
include OmniAuth::Strategy |
3✔ |
|
include ActionView::Helpers::FormHelper |
3✔ |
8 |
|
|
|
option :fields, %i[username] |
3✔ |
|
option :uid_field, :username |
3✔ |
11 |
|
|
|
uid do
|
3✔ |
NEW
|
request.params[options.uid_field.to_s] |
× |
14 |
end
|
|
15 |
|
|
|
info do
|
3✔ |
NEW
|
{} |
× |
18 |
end
|
|
19 |
|
|
|
def request_phase |
3✔ |
NEW
|
redirect '/users/sign_in'
|
× |
22 |
end
|
|
23 |
end
|
|
24 |
end
|
|
25 |
end
|