2
0
mirror of https://github.com/moebooru/moebooru synced 2025-08-22 01:47:48 +00:00

Remove commented out test

I don't think it'll ever return.
This commit is contained in:
nanaya 2024-11-04 07:39:42 +09:00
parent dea614b089
commit 6e7d26128c

View File

@ -55,15 +55,6 @@ class CommentControllerTest < ActionController::TestCase
CONFIG["member_comment_limit"] = old_member_comment_limit
end
def test_create_do_not_bump_post
# FIXME: this functionality has been disabled since forever.
# post :create, { :comment => { :post_id => 1, :body => "hoge" }, :commit => "Post without bumping" }, :user_id => 1
# post = Post.find(1)
# binding.pry
# assert_equal(1, post.comments.size)
# assert_nil(post.last_commented_at)
end
def test_show
comment = create_comment(1, "hoge")
get :show, params: { id: comment.id }, session: { user_id: 4 }