Skip to content
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

Merged
merged 1 commit into from
Mar 4, 2024

Conversation

tagliala
Copy link
Contributor

@tagliala tagliala commented Mar 3, 2024

No description provided.

Copy link

codecov bot commented Mar 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.91%. Comparing base (2ba90dd) to head (f1db729).

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.
📢 Have feedback on the report? Share it here.

@javierjulio javierjulio self-requested a review March 4, 2024 14:59
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}")
Copy link
Member

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?

Copy link
Contributor Author

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

Copy link
Member

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.

Copy link
Member

@javierjulio javierjulio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@tagliala tagliala merged commit 1f732e2 into activeadmin:master Mar 4, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants