push
circleci
3 of 3 new or added lines in 2 files covered. (100.0%)
160 existing lines in 18 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
|