posts: remove unused flag! and approve! methods.
These methods were unused outside of the test suite
This commit is contained in:
@@ -14,7 +14,7 @@ class ApproverPrunerTest < ActiveSupport::TestCase
|
||||
|
||||
should "not demote active approvers" do
|
||||
posts = create_list(:post, ApproverPruner::MINIMUM_APPROVALS + 1, is_pending: true)
|
||||
posts.each { |post| post.approve!(@approver) }
|
||||
posts.each { |post| create(:post_approval, post: post, user: @approver) }
|
||||
|
||||
assert_equal([], ApproverPruner.inactive_approvers.map(&:id))
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user