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

Convert social share helper library into a real helper #5413

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

tomhughes
Copy link
Member

This converts the confusingly named SocialShareButtonHelper which is really a library, but tested by a helper test, into a real helper and moves the actual render_social_share_buttons helper there from the application helper.

The other methods are then private as they're only used by render_social_share_buttons so are no longer tested separately as they're not visible to the test but will be tested implicitly by the calls to render_social_share_buttons in the other tests so coverage should be the same.

@gravitystorm gravitystorm merged commit b32021b into openstreetmap:master Dec 18, 2024
15 checks passed
@gravitystorm gravitystorm added the refactor Refactoring, or things that work but could be done better label Dec 18, 2024
@gravitystorm
Copy link
Collaborator

Merged, thanks.

@tomhughes tomhughes deleted the social-share-helper branch December 18, 2024 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Refactoring, or things that work but could be done better
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants