<p></p>
<p><b>@AntonKhorev</b> commented on this pull request.</p>
<hr>
<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4552#discussion_r1508561352">test/controllers/changesets_controller_test.rb</a>:</p>
<pre style='color:#555'>> @@ -121,8 +125,9 @@ def test_index_bbox
# Checks the display of the user changesets listing
def test_index_user
user = create(:user)
- create(:changeset, :user => user)
- create(:changeset, :closed, :user => user)
+ create(:changeset, :user => user, :num_changes => 1)
+ create(:changeset, :closed, :user => user, :num_changes => 1)
+ user.reload
</pre>
<p dir="auto">This test was comparing empty list of changesets (because changesets without changes are filtered out) with another empty list of changesets (because <code class="notranslate">user.changesets</code> weren't updated after <code class="notranslate">create(:changeset, ...)</code>). So it wasn't testing anything and it wasn't testing my changes.</p>
<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/4552#discussion_r1508561352">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLLEDNKTJGZ463DZ7HLYWAST5AVCNFSM6AAAAABD7UBSHKVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTSMJQGQ2DENZXGQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLJUG6VDBQ2FRSML7VTYWAST5A5CNFSM6AAAAABD7UBSHKWGG33NNVSW45C7OR4XAZNRKB2WY3CSMVYXKZLTORJGK5TJMV32UY3PNVWWK3TUL5UWJTTR34FRM.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/4552/review/1910442774</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/4552#discussion_r1508561352",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4552#discussion_r1508561352",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>