posts: remove unused flag! and approve! methods.

These methods were unused outside of the test suite
This commit is contained in:
evazion
2021-10-11 20:05:09 -05:00
parent f155023b77
commit 341be51f95
10 changed files with 71 additions and 190 deletions

View File

@@ -110,14 +110,8 @@ module Moderator
end
context "for flags" do
setup do
as(@user) do
@post = create(:post)
@post.flag!("blah")
end
end
should "render" do
create(:post_flag)
get_auth moderator_dashboard_path, @admin
assert_response :success
end

View File

@@ -12,7 +12,7 @@ class PostEventsControllerTest < ActionDispatch::IntegrationTest
create(:post_flag, post: @post, status: :rejected)
@post.update(is_deleted: true)
create(:post_appeal, post: @post, status: :succeeded)
@post.approve!(@mod)
create(:post_approval, post: @post, user: @mod)
end
end