<p dir="auto">This converts the confusingly named <code class="notranslate">SocialShareButtonHelper</code> which is really a library, but tested by a helper test, into a real helper and moves the actual <code class="notranslate">render_social_share_buttons</code> helper there from the application helper.</p>
<p dir="auto">The other methods are then private as they're only used by <code class="notranslate">render_social_share_buttons</code> so are no longer tested separately as they're not visible to the test but will be tested implicitly by the calls to <code class="notranslate">render_social_share_buttons</code> in the other tests so coverage should be the same.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/5413'>https://github.com/openstreetmap/openstreetmap-website/pull/5413</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5413/commits/2a5e35c7160624ba5225e065f7d726b01abb2612" class="commit-link">2a5e35c</a>  Convert social share helper library into a real helper</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5413/files">3 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5413/files#diff-5f3fc5e3977d242572aa1d08551f5eb557de0ccaff30370838ee9df5386ea0da">app/helpers/application_helper.rb</a>
    (29)
  </li>
  <li>
    <strong>R</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5413/files#diff-22f6dbff3e22400e636b6f70bcaef16d9b6038aad4ac96daa11350633272bfc6">app/helpers/social_share_button_helper.rb</a>
    (38)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5413/files#diff-5aab28ad7860eb0242ea2309b822517bcb26c1ddbbb9686945b14d1fb8791f74">test/helpers/social_share_button_helper_test.rb</a>
    (12)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5413.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5413.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5413.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5413.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5413">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLLXL2JI7FGFWERT6TL2GGF7HAVCNFSM6AAAAABT25QPRWVHI2DSMVQWIX3LMV43ASLTON2WKOZSG42DQMBXG42DCNA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLOHRRZXPSKOBNVNCP32GGF7HA5CNFSM6AAAAABT25QPRWWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHKHTCVMY.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/5413</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/5413",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5413",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>