Skip to content

Commit 861106b

Browse files
committed
Fix purchase spec: pass author_name to suspend_for_fraud
#4364 expanded suspend_for_fraud to allow direct suspension from not_reviewed, which now triggers add_user_comment requiring author_id or author_name.
1 parent a19b659 commit 861106b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/models/purchase_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1744,7 +1744,7 @@ def verify_balance(user, expected_balance)
17441744
end
17451745

17461746
{
1747-
user_suspended: ->(u, _l) { u.suspend_for_fraud },
1747+
user_suspended: ->(u, _l) { u.suspend_for_fraud(author_name: "Admin") },
17481748
link_disabled: ->(_u, l) { l.purchase_disabled_at = Time.current },
17491749
link_deleted: ->(_u, l) { l.deleted_at = Time.current }
17501750
}.each do |k, v|

0 commit comments

Comments
 (0)