push
circleci
9 of 9 new or added lines in 1 file covered. (100.0%)
61 existing lines in 11 files now uncovered.3036 of 3234 relevant lines covered (93.88%)
52.41 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
|