circleci
1 of 5 new or added lines in 2 files covered. (20.0%)
580 existing lines in 35 files now uncovered.2898 of 3173 relevant lines covered (91.33%)
570.28 hits per line
| 1 |
# frozen_string_literal: true
|
|
|
UNCOV
2
|
class WelcomeController < ApplicationController |
2✔ |
|
UNCOV
3
|
skip_before_action :authenticate_user!
|
2✔ |
|
UNCOV
4
|
skip_before_action :downtime_check
|
2✔ |
|
UNCOV
5
|
skip_before_action :verify_authenticity_token
|
2✔ |
| 6 |
|
|
|
UNCOV
7
|
def index |
2✔ |
|
UNCOV
8
|
if current_user.blank?
|
32✔ |
|
UNCOV
9
|
render layout: "welcome" |
12✔ |
|
NEW
|
elsif Flipflop.disable_login? |
20✔ |
|
NEW
|
downtime_check(with_redirect: false) |
2✔ |
|
NEW
|
redirect_to dashboard_path if current_user&.eligible_sysadmin?
|
2✔ |
|
UNCOV
13
|
else
|
|
|
UNCOV
14
|
redirect_to dashboard_path |
18✔ |
|
UNCOV
15
|
end
|
|
|
UNCOV
16
|
end
|
|
| 17 |
|
|
|
UNCOV
18
|
def help; end |
2✔ |
|
UNCOV
19
|
end
|