X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4e9144fba2a8c52c1555295dc01ae715d434fcc8..6b44a1976cf07ba50ba8aed8b34434e69a45e62d:/test/integration/compressed_requests_test.rb?ds=inline diff --git a/test/integration/compressed_requests_test.rb b/test/integration/compressed_requests_test.rb index 0c66b306e..6ea875a9d 100644 --- a/test/integration/compressed_requests_test.rb +++ b/test/integration/compressed_requests_test.rb @@ -38,7 +38,7 @@ CHANGESET post "/api/0.6/changeset/#{changeset.id}/upload", :params => diff, :headers => { - "HTTP_AUTHORIZATION" => format("Basic %s", Base64.encode64("#{user.display_name}:test")), + "HTTP_AUTHORIZATION" => format("Basic %{auth}", :auth => Base64.encode64("#{user.display_name}:test")), "HTTP_CONTENT_TYPE" => "application/xml" } assert_response :success, @@ -87,7 +87,7 @@ CHANGESET post "/api/0.6/changeset/#{changeset.id}/upload", :params => gzip_content(diff), :headers => { - "HTTP_AUTHORIZATION" => format("Basic %s", Base64.encode64("#{user.display_name}:test")), + "HTTP_AUTHORIZATION" => format("Basic %{auth}", :auth => Base64.encode64("#{user.display_name}:test")), "HTTP_CONTENT_ENCODING" => "gzip", "HTTP_CONTENT_TYPE" => "application/xml" } @@ -137,7 +137,7 @@ CHANGESET post "/api/0.6/changeset/#{changeset.id}/upload", :params => deflate_content(diff), :headers => { - "HTTP_AUTHORIZATION" => format("Basic %s", Base64.encode64("#{user.display_name}:test")), + "HTTP_AUTHORIZATION" => format("Basic %{auth}", :auth => Base64.encode64("#{user.display_name}:test")), "HTTP_CONTENT_ENCODING" => "deflate", "HTTP_CONTENT_TYPE" => "application/xml" } @@ -158,7 +158,7 @@ CHANGESET post "/api/0.6/changeset/#{changeset.id}/upload", :params => "", :headers => { - "HTTP_AUTHORIZATION" => format("Basic %s", Base64.encode64("#{user.display_name}:test")), + "HTTP_AUTHORIZATION" => format("Basic %{auth}", :auth => Base64.encode64("#{user.display_name}:test")), "HTTP_CONTENT_ENCODING" => "unknown", "HTTP_CONTENT_TYPE" => "application/xml" }