Closed susannasiebert closed 4 years ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
app/policies/comment_policy.rb | 0 | 1 | 0.0% | ||
<!-- | Total: | 4 | 5 | 80.0% | --> |
Totals | |
---|---|
Change from base Build 2486: | 0.05% |
Covered Lines: | 2111 |
Relevant Lines: | 2352 |
Apparently the
target_user
and thecurrent_user
have differentobject_id
s so the direct comparison always fails. Comparing byid
does the trick.