DEV: reviewable_user spec should assert on delete_user_block instead of delete_user (#24692)
This commit is contained in:
parent
0af8bbd378
commit
037622fc7f
|
@ -26,7 +26,7 @@ RSpec.describe ReviewableUser, type: :model do
|
|||
expect(actions.has?(:delete_user_block)).to eq(false)
|
||||
end
|
||||
|
||||
it "can delete a user without a giving a rejection reason if the user was a spammer" do
|
||||
it "doesn't ask for a rejection reason when deleting a user who was flagged as a possible spammer" do
|
||||
reviewable.reviewable_scores.build(user: admin, reason: "suspect_user")
|
||||
|
||||
assert_require_reject_reason(:delete_user, false)
|
||||
|
@ -36,10 +36,10 @@ RSpec.describe ReviewableUser, type: :model do
|
|||
assert_require_reject_reason(:delete_user, true)
|
||||
end
|
||||
|
||||
it "can delete and block a user without giving a rejection reason if the user was a spammer" do
|
||||
it "doesn't ask for a rejection reason when blocking a user who was flagged as a possible spammer" do
|
||||
reviewable.reviewable_scores.build(user: admin, reason: "suspect_user")
|
||||
|
||||
assert_require_reject_reason(:delete_user, false)
|
||||
assert_require_reject_reason(:delete_user_block, false)
|
||||
end
|
||||
|
||||
it "requires a rejection reason to delete and block a user" do
|
||||
|
|
Loading…
Reference in New Issue