posts: remove unused appeal! method.

This commit is contained in:
evazion
2020-01-24 23:51:37 -06:00
parent a3e16c167f
commit ec163f96a8
4 changed files with 9 additions and 26 deletions

View File

@@ -127,14 +127,10 @@ module Moderator
end
context "for appeals" do
setup do
as(@user) do
@post = create(:post, :is_deleted => true)
@post.appeal!("blah")
end
end
should "render" do
@post = create(:post, is_deleted: true)
@appeal = create(:post_appeal, post: @post)
get_auth moderator_dashboard_path, @admin
assert_response :success
end

View File

@@ -10,7 +10,7 @@ class PostEventsControllerTest < ActionDispatch::IntegrationTest
as_user do
@post = create(:post)
@post.flag!("aaa")
@post.appeal!("aaa")
create(:post_appeal, post: @post)
@post.approve!(@mod)
end
end