Exclude methods from coverage
This commit is contained in:
parent
296e2a0e92
commit
e2780db313
1 changed files with 8 additions and 0 deletions
|
@ -8,6 +8,8 @@ class ApplicationPolicy
|
|||
@record = record
|
||||
end
|
||||
|
||||
# :nocov:
|
||||
|
||||
def index?
|
||||
false
|
||||
end
|
||||
|
@ -36,6 +38,8 @@ class ApplicationPolicy
|
|||
false
|
||||
end
|
||||
|
||||
# :nocov:
|
||||
|
||||
def policy(record)
|
||||
Pundit.policy user, record
|
||||
end
|
||||
|
@ -48,8 +52,12 @@ class ApplicationPolicy
|
|||
@scope = scope
|
||||
end
|
||||
|
||||
# :nocov:
|
||||
|
||||
def resolve
|
||||
scope.none
|
||||
end
|
||||
|
||||
# :nocov:
|
||||
end
|
||||
end
|
||||
|
|
Reference in a new issue