]> git.openstreetmap.org Git - rails.git/commitdiff
Add a changeset to exercise that part of the contact rendering
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 14 Nov 2018 11:25:21 +0000 (12:25 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 14 Nov 2018 11:25:21 +0000 (12:25 +0100)
test/controllers/users_controller_test.rb

index 7eda2a53ac1e7e65598aac29b342db9c013b9d97..deb736a7b2d9beb1524e3fc417970d8a9f7d4a6c 100644 (file)
@@ -1005,6 +1005,8 @@ class UsersControllerTest < ActionController::TestCase
     user = create(:user, :home_lon => 1.1, :home_lat => 1.1)
     friend_user = create(:user, :home_lon => 1.2, :home_lat => 1.2)
     create(:friend, :befriender => user, :befriendee => friend_user)
+    create(:changeset, :user => friend_user)
+
     get :show, :params => { :display_name => user.display_name }
     assert_response :success
     assert_select "div#userinformation" do