FEATURE: Display the reason for many reviewable items

Queued Posts and Users will now display a reason why they are in the
review queue.
This commit is contained in:
Robin Ward
2019-04-11 12:04:45 -04:00
parent 7143572e0c
commit 331a809738
13 changed files with 105 additions and 13 deletions
@@ -6,6 +6,7 @@ describe ReviewableUserSerializer do
let(:admin) { Fabricate(:admin) }
it "includes the user fields for review" do
SiteSetting.must_approve_users = true
Jobs::CreateUserReviewable.new.execute(user_id: user.id)
reviewable = Reviewable.find_by(target: user)