push
circleci
5 of 12 new or added lines in 11 files covered. (41.67%)
904 existing lines in 36 files now uncovered.2801 of 3197 relevant lines covered (87.61%)
360.23 hits per line
| 1 |
# frozen_string_literal: true
|
|
|
UNCOV
2
|
class WelcomeController < ApplicationController |
1✔ |
|
UNCOV
3
|
skip_before_action :authenticate_user!
|
1✔ |
|
UNCOV
4
|
skip_before_action :downtime_check
|
1✔ |
|
UNCOV
5
|
skip_before_action :verify_authenticity_token
|
1✔ |
| 6 |
|
|
|
UNCOV
7
|
def index |
1✔ |
|
UNCOV
8
|
if current_user.blank?
|
6✔ |
|
UNCOV
9
|
render layout: "welcome" |
2✔ |
|
UNCOV
10
|
elsif Flipflop.disable_login? |
4✔ |
|
UNCOV
11
|
downtime_check(with_redirect: false) |
2✔ |
|
UNCOV
12
|
redirect_to dashboard_path if current_user&.eligible_sysadmin?
|
2✔ |
|
UNCOV
13
|
else
|
|
|
UNCOV
14
|
redirect_to dashboard_path |
2✔ |
|
UNCOV
15
|
end
|
|
|
UNCOV
16
|
end
|
|
| 17 |
|
|
|
UNCOV
18
|
def help; end |
1✔ |
|
UNCOV
19
|
end
|