push
circleci
1 of 1 new or added line in 1 file covered. (100.0%)
196 existing lines in 19 files now uncovered.2957 of 3138 relevant lines covered (94.23%)
51.11 hits per line
1 |
class UserIsAdmin |
4✔ |
2 |
def self.matches?(request) |
4✔ |
UNCOV
3
|
warden = request.env['warden']
|
8✔ |
UNCOV
4
|
user = warden.authenticate |
8✔ |
UNCOV
5
|
user&.admin? |
8✔ |
6 |
end
|
|
7 |
end
|