From 47d11763fbe02ce1aa9470e33aabb151bef68297 Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 22 Jul 2020 17:51:43 +0200 Subject: [PATCH] Add some changsets that shouldn't be selected --- test/controllers/changesets_controller_test.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/controllers/changesets_controller_test.rb b/test/controllers/changesets_controller_test.rb index a4f29359b..a5ce2aa62 100644 --- a/test/controllers/changesets_controller_test.rb +++ b/test/controllers/changesets_controller_test.rb @@ -146,6 +146,7 @@ class ChangesetsControllerTest < ActionDispatch::IntegrationTest private_user = create(:user, :data_public => true) friendship = create(:friendship, :befriender => private_user) changeset = create(:changeset, :user => friendship.befriendee, :num_changes => 1) + _changeset2 = create(:changeset, :user => create(:user), :num_changes => 1) get friend_changesets_path assert_response :redirect @@ -169,7 +170,9 @@ class ChangesetsControllerTest < ActionDispatch::IntegrationTest 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) + far_away_user = create(:user, :home_lat => 51.0, :home_lon => 130) changeset = create(:changeset, :user => user, :num_changes => 1) + _changeset2 = create(:changeset, :user => far_away_user, :num_changes => 1) get nearby_changesets_path assert_response :redirect -- 2.39.5