[openstreetmap/openstreetmap-website] Avoid testing against empty db queries (#2725)
Andy Allan
notifications at github.com
Wed Jul 22 15:53:49 UTC 2020
@gravitystorm commented on this pull request.
> end
##
# Checks the display of the nearby user changesets listing
def test_index_nearby
private_user = create(:user, :data_public => false, :home_lat => 51.1, :home_lon => 1.0)
user = create(:user, :home_lat => 51.0, :home_lon => 1.0)
- create(:changeset, :user => user)
+ changeset = create(:changeset, :user => user, :num_changes => 1)
Also done
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/2725#discussion_r458898010
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20200722/fd5e97a0/attachment.htm>
More information about the rails-dev
mailing list