require 'test_helper' class UserFollowingsControllerTest < ActionDispatch::IntegrationTest setup do @user_following = user_followings(:one) end test "should get index" do get user_followings_url assert_response :success end test "should get new" do get new_user_following_url assert_response :success end test "should create user_following" do assert_difference('UserFollowing.count') do post user_followings_url, params: { user_following: { } } end assert_redirected_to user_following_url(UserFollowing.last) end test "should show user_following" do get user_following_url(@user_following) assert_response :success end test "should get edit" do get edit_user_following_url(@user_following) assert_response :success end test "should update user_following" do patch user_following_url(@user_following), params: { user_following: { } } assert_redirected_to user_following_url(@user_following) end test "should destroy user_following" do assert_difference('UserFollowing.count', -1) do delete user_following_url(@user_following) end assert_redirected_to user_followings_url end end