push
circleci
1 of 3 new or added lines in 2 files covered. (33.33%)
204 existing lines in 27 files now uncovered.2636 of 2829 relevant lines covered (93.18%)
38.19 hits per line
1 |
class UserIsAdmin |
3✔ |
2 |
def self.matches?(request) |
3✔ |
UNCOV
3
|
warden = request.env['warden']
|
8✔ |
UNCOV
4
|
user = warden.authenticate |
8✔ |
UNCOV
5
|
user&.admin? |
8✔ |
6 |
end
|
|
7 |
end
|