Fixing review comments

Added scoping for unredacted items, cleaned up authorization and
railsified old_node_controller.
This commit is contained in:
Matt Amos 2012-03-28 13:21:18 +01:00 committed by Tom Hughes
parent 67dd9e4c9d
commit 67182f824e
6 changed files with 72 additions and 32 deletions

View file

@ -193,7 +193,7 @@ class OldNodeControllerTest < ActionController::TestCase
do_redact_node(nodes(:node_with_versions_v4),
redactions(:example))
assert_response :forbidden, "shouldn't be OK to redact current version as moderator."
assert_response :bad_request, "shouldn't be OK to redact current version as moderator."
end
##