mirror of
https://github.com/moebooru/moebooru
synced 2025-08-22 09:57:31 +00:00
Remove commented out test
I don't think it'll ever return.
This commit is contained in:
parent
dea614b089
commit
6e7d26128c
@ -55,15 +55,6 @@ class CommentControllerTest < ActionController::TestCase
|
|||||||
CONFIG["member_comment_limit"] = old_member_comment_limit
|
CONFIG["member_comment_limit"] = old_member_comment_limit
|
||||||
end
|
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
|
def test_show
|
||||||
comment = create_comment(1, "hoge")
|
comment = create_comment(1, "hoge")
|
||||||
get :show, params: { id: comment.id }, session: { user_id: 4 }
|
get :show, params: { id: comment.id }, session: { user_id: 4 }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user