diff --git a/7_0/ch14/app/controllers/users_controller.rb b/7_0/ch14/app/controllers/users_controller.rb index eda21a6..7b9c40d 100644 --- a/7_0/ch14/app/controllers/users_controller.rb +++ b/7_0/ch14/app/controllers/users_controller.rb @@ -50,14 +50,14 @@ def following @title = "Following" @user = User.find(params[:id]) @users = @user.following.paginate(page: params[:page]) - render 'show_follow', status: :unprocessable_entity + render 'show_follow' end def followers @title = "Followers" @user = User.find(params[:id]) @users = @user.followers.paginate(page: params[:page]) - render 'show_follow', status: :unprocessable_entity + render 'show_follow' end private diff --git a/7_0/ch14/test/integration/following_test.rb b/7_0/ch14/test/integration/following_test.rb index 17735ae..a753608 100644 --- a/7_0/ch14/test/integration/following_test.rb +++ b/7_0/ch14/test/integration/following_test.rb @@ -13,7 +13,7 @@ class FollowPagesTest < Following test "following page" do get following_user_path(@user) - assert_response :unprocessable_entity + assert_response :success assert_not @user.following.empty? assert_match @user.following.count.to_s, response.body @user.following.each do |user| @@ -23,7 +23,7 @@ class FollowPagesTest < Following test "followers page" do get followers_user_path(@user) - assert_response :unprocessable_entity + assert_response :success assert_not @user.followers.empty? assert_match @user.followers.count.to_s, response.body @user.followers.each do |user|