auth_header = bearer_authorization_header create(:moderator_user)
do_redact_node(node_v3, create(:redaction), auth_header)
+
assert_response :success, "should be OK to redact old version as moderator."
+ assert_predicate node_v3.reload, :redacted?
# check moderator can still see the redacted data, when passing
# the appropriate flag
auth_header = bearer_authorization_header create(:moderator_user)
do_redact_relation(relation_v3, create(:redaction), auth_header)
+
assert_response :success, "should be OK to redact old version as moderator."
+ assert_predicate relation_v3.reload, :redacted?
# check moderator can still see the redacted data, when passing
# the appropriate flag
auth_header = bearer_authorization_header create(:moderator_user)
do_redact_way(way_v3, create(:redaction), auth_header)
+
assert_response :success, "should be OK to redact old version as moderator."
+ assert_predicate way_v3.reload, :redacted?
# check moderator can still see the redacted data, when passing
# the appropriate flag