<p dir="auto">This PR changes redact/unredact tests for the reasons stated in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2843459754" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5645" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/5645/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/5645">#5645</a>.</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/5649'>https://github.com/openstreetmap/openstreetmap-website/pull/5649</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5649/commits/bd0f5a1932829ca44c0fef2fe7d825fda76e41eb" class="commit-link">bd0f5a1</a> Split api old element redacted index tests</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5649/commits/be020d1546b97ad42873b3cdc04b0787bf0eb905" class="commit-link">be020d1</a> Split api old element redacted show tests</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5649/commits/ddebb42a8e4e63193dea7257b8fb7867a013291b" class="commit-link">ddebb42</a> Add show_redactions checks to api old element index tests</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5649/commits/d0c68c404147f36e92fdfe0d219c7e2bd6dfa6bb" class="commit-link">d0c68c4</a> Test redacted element state after redaction action</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5649/commits/46113c9cbaa821632eb3a5b63700607e6c7941e6" class="commit-link">46113c9</a> Test api old element index accessed as moderator</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5649/commits/1b977454f7f993ebf6d64c30921a4f62accbc640" class="commit-link">1b97745</a> Add show_redactions checks to api old element show tests</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5649/commits/98a365c827a2c9c0a1d944d074b74ed8dcf84414" class="commit-link">98a365c</a> Test api old element show accessed as moderator</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5649/commits/c134cabab2ce6d88113c15b7e5d166b189030df0" class="commit-link">c134cab</a> Remove do_redact_element methods from api old element redaction tests</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5649/commits/ef9d39ece0cc0e455e9494d81cef4f9e185cafdc" class="commit-link">ef9d39e</a> Use fewer element versions in redaction tests</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5649/commits/0063727434d240528d72cbeabae9cb4d46cd6b15" class="commit-link">0063727</a> Check old element state instead of responses in unredaction tests</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5649/commits/06cca3717a91dcc089205bda5aab30c0f10ba582" class="commit-link">06cca37</a> Rename old element variables in redaction tests</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5649/commits/03ebd2ac5e8048fcf7c5dea1cbdde6d90f606402" class="commit-link">03ebd2a</a> Test states of old elements after unsuccessful redactions</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5649/commits/319c9af97553f2a37d10097bf1017740ebfdbf12" class="commit-link">319c9af</a> Move current version redaction tests above roles/scopes tests</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5649/commits/41e93bfb66f93fb6a2de42ee00e6b0f28f6b3e08" class="commit-link">41e93bf</a> Make user creation code in unredact test similar to redact tests</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5649/files">3 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5649/files#diff-7ee3168144cba950374d481967d27d39db360d6dfb366aa9033b42f32cb98256">test/controllers/api/old_nodes_controller_test.rb</a>
(293)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5649/files#diff-8e8190e84ed61c4b7d4457b6d491daae4fbe436431cd5985b364592d52271c68">test/controllers/api/old_relations_controller_test.rb</a>
(280)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5649/files#diff-1d1ef6db64a5caea6f9e55e4038ed133a740c05263a5863c797fbfe26adc533e">test/controllers/api/old_ways_controller_test.rb</a>
(287)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5649.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5649.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5649.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5649.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/5649">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLKHBCUBCKMJRAQFHUT2PF353AVCNFSM6AAAAABW4DTAP6VHI2DSMVQWIX3LMV43ASLTON2WKOZSHA2DIMRUGMYDMMI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLMQPYPZERA75V3CH6L2PF353A5CNFSM6AAAAABW4DTAP6WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHKTB5UOU.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/5649</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/5649",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5649",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>