[openstreetmap/openstreetmap-website] Avoid testing against empty db queries (#2725)
Andy Allan
notifications at github.com
Wed Jul 22 15:53:40 UTC 2020
@gravitystorm commented on this pull request.
> @@ -131,7 +145,7 @@ def test_index_user_not_found
def test_index_friends
private_user = create(:user, :data_public => true)
friendship = create(:friendship, :befriender => private_user)
- create(:changeset, :user => friendship.befriendee)
+ changeset = create(:changeset, :user => friendship.befriendee, :num_changes => 1)
Done! Thanks for picking this up
--
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_r458897885
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20200722/1846a834/attachment-0001.htm>
More information about the rails-dev
mailing list