<p>For the changesets_controller_test, I introduced a few more route aliases. I'm not super keen on some of them (like api_node) but that's to distinguish them from the non-api method that already has the name. Refactoring the routes is left for the future.</p>
<p>The two new helper methods will replace the existing ones, we only need both sets during the transition.</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/2605'>https://github.com/openstreetmap/openstreetmap-website/pull/2605</a></p>
<h4>Commit Summary</h4>
<ul>
<li>Refactor more controller tests</li>
<li>Refactor changesets_controller_test</li>
</ul>
<h4>File Changes</h4>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/2605/files#diff-21497849d8f00507c9c8dcaf6288b136">config/routes.rb</a>
(8)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/2605/files#diff-3f0ccb601e5e05723ce0a4fe27677372">test/controllers/api/capabilities_controller_test.rb</a>
(4)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/2605/files#diff-12e972079653040497bd8d0b7e6e8acd">test/controllers/api/changes_controller_test.rb</a>
(18)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/2605/files#diff-3ceb1eb0b5c1b2eaa09e0f66465d878b">test/controllers/api/changesets_controller_test.rb</a>
(361)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/2605/files#diff-f14ca9959ff06f3ca2ee6b9564866954">test/test_helper.rb</a>
(10)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/2605.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/2605.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/2605.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/2605.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2605">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLP7SNY2L6FVV2TE2QTRPBD3VANCNFSM4MT24VCQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLODTBEG633PRFLLUBLRPBD3VA5CNFSM4MT24VC2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4JCPDB5Q.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/2605",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/2605",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>