posts: remove unused appeal! method.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user