-
-
Notifications
You must be signed in to change notification settings - Fork 392
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Rubocop, enable new cops, fix offenses #902
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #902 +/- ##
==========================================
+ Coverage 98.73% 98.91% +0.18%
==========================================
Files 14 14
Lines 555 555
==========================================
+ Hits 548 549 +1
+ Misses 7 6 -1 ☔ View full report in Codecov by Sentry. |
end | ||
|
||
# Get collection ivar based on the current resource controller. | ||
# | ||
def get_collection_ivar #:nodoc: | ||
if instance_variable_defined?(:"@#{resource_collection_name}") | ||
instance_variable_get("@#{resource_collection_name}") | ||
instance_variable_get(:"@#{resource_collection_name}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only line that has no test coverage. Do you think it would be possible to add a single test case for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. It is not beautiful, but it does the job
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries. What you did was exactly what I was thinking. This is great and just what we needed. Thank you.
5719a1f
to
f1db729
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
No description provided.