X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/319c9af97553f2a37d10097bf1017740ebfdbf12..46f642d5cd88d51bd6e80e48cc24f7a6da68d4c7:/test/controllers/api/old_ways_controller_test.rb 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