travis-ci
162 of 162 new or added lines in 19 files covered. (100.0%)
1307 of 1719 relevant lines covered (76.03%)
19.52 hits per line
1 |
class UserTestPolicy < ApplicationPolicy |
1✔ |
2 |
def index? |
1✔ |
3 |
true
|
× |
4 |
end
|
|
5 |
|
|
|
def show? |
1✔ |
|
@record.user == @user |
× |
8 |
end
|
|
9 |
|
|
10 |
def create? |
1✔ |
11 |
@record.test.user_tests.with_user(@user).exists? |
2✔ |
12 |
end
|
|
13 |
|
|
14 |
def update? |
1✔ |
15 |
@record.user == @user |
2✔ |
16 |
end
|
|
17 |
end
|