X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/682201d8f43bdb1fb9b85e3383bf6208f023a73b..2d8feb6d79af2e96d83cf67ca0771116c9c0f11a:/test/controllers/friendships_controller_test.rb?ds=inline diff --git a/test/controllers/friendships_controller_test.rb b/test/controllers/friendships_controller_test.rb index 19de4ae8e..f63a8e449 100644 --- a/test/controllers/friendships_controller_test.rb +++ b/test/controllers/friendships_controller_test.rb @@ -32,7 +32,7 @@ class FriendshipsControllerTest < ActionDispatch::IntegrationTest # When not logged in a GET should ask us to login get make_friend_path(friend) - assert_redirected_to login_path(:referer => make_friend_path(:display_name => friend.display_name)) + assert_redirected_to login_path(:referer => make_friend_path(friend)) # When not logged in a POST should error post make_friend_path(friend) @@ -113,7 +113,7 @@ class FriendshipsControllerTest < ActionDispatch::IntegrationTest def test_make_friend_unknown_user # Should error when a bogus user is specified session_for(create(:user)) - get make_friend_path(:display_name => "No Such User") + get make_friend_path("No Such User") assert_response :not_found assert_template :no_such_user end @@ -129,7 +129,7 @@ class FriendshipsControllerTest < ActionDispatch::IntegrationTest # When not logged in a GET should ask us to login get remove_friend_path(friend) - assert_redirected_to login_path(:referer => remove_friend_path(:display_name => friend.display_name)) + assert_redirected_to login_path(:referer => remove_friend_path(friend)) # When not logged in a POST should error post remove_friend_path, :params => { :display_name => friend.display_name } @@ -191,7 +191,7 @@ class FriendshipsControllerTest < ActionDispatch::IntegrationTest def test_remove_friend_unknown_user # Should error when a bogus user is specified session_for(create(:user)) - get remove_friend_path(:display_name => "No Such User") + get remove_friend_path("No Such User") assert_response :not_found assert_template :no_such_user end