push
travis-ci
25 of 25 new or added lines in 5 files covered. (100.0%)
501 of 795 relevant lines covered (63.02%)
23.81 hits per line
1 |
class EventImportResultPolicy < ApplicationPolicy |
6✔ |
2 |
def index? |
6✔ |
3 |
true if user.try(:has_role?, 'Librarian') |
24✔ |
4 |
end
|
|
5 |
|
|
6 |
def show? |
6✔ |
7 |
true if user.try(:has_role?, 'Librarian') |
× |
8 |
end
|
|
9 |
|
|
10 |
def create? |
6✔ |
11 |
false
|
× |
12 |
end
|
|
13 |
|
|
14 |
def update? |
6✔ |
15 |
false
|
× |
16 |
end
|
|
17 |
|
|
18 |
def destroy? |
6✔ |
19 |
false
|
× |
20 |
end
|
|
21 |
end
|