Test redacted element state after redaction action
This commit is contained in:
parent
ddebb42a8e
commit
d0c68c4041
3 changed files with 6 additions and 0 deletions
|
@ -228,7 +228,9 @@ module Api
|
|||
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
|
||||
|
|
|
@ -215,7 +215,9 @@ module Api
|
|||
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
|
||||
|
|
|
@ -223,7 +223,9 @@ module Api
|
|||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue