diff --git a/test/controllers/posts_controller_test.rb b/test/controllers/posts_controller_test.rb index f89ed09f261ed4ba3d0425e607826a0fafa5d488..e476ce678702b94e136435679c8da82f98f84a31 100644 --- a/test/controllers/posts_controller_test.rb +++ b/test/controllers/posts_controller_test.rb @@ -648,7 +648,6 @@ class PostsControllerTest < ActionController::TestCase post :toggle_comments, params: { id: posts(:question_one).id } assert_response 302 assert_redirected_to new_user_session_path - assert_not assigns(:post).comments_disabled end test 'regular users cannot toggle comments' do