X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/319c9af97553f2a37d10097bf1017740ebfdbf12..f5af8befa9ffe0c95f4a3c58d2fbb63a2e971ab0:/test/controllers/api/old_ways_controller_test.rb?ds=sidebyside diff --git a/test/controllers/api/old_ways_controller_test.rb b/test/controllers/api/old_ways_controller_test.rb index e879c42a9..6946d2ab1 100644 --- a/test/controllers/api/old_ways_controller_test.rb +++ b/test/controllers/api/old_ways_controller_test.rb @@ -307,11 +307,10 @@ module Api # test the unredaction of an old version of a way, while being # authorised as a moderator. def test_unredact_way_moderator - moderator_user = create(:moderator_user) way = create(:way, :with_history, :version => 2) old_way = way.old_ways.find_by(:version => 1) old_way.redact!(create(:redaction)) - auth_header = bearer_authorization_header moderator_user + auth_header = bearer_authorization_header create(:moderator_user) post way_version_redact_path(*old_way.id), :headers => auth_header