X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9d2f920feb9dce028b985e8d452538d3df7a1d9c..441e6ef9527e1f7b27cc8b4ba449a00222a027dd:/test/integration/compressed_requests_test.rb diff --git a/test/integration/compressed_requests_test.rb b/test/integration/compressed_requests_test.rb index 6ea875a9d..ecffe3c46 100644 --- a/test/integration/compressed_requests_test.rb +++ b/test/integration/compressed_requests_test.rb @@ -16,7 +16,7 @@ class CompressedRequestsTest < ActionDispatch::IntegrationTest # simple diff to change a node, way and relation by removing # their tags - diff = < @@ -32,13 +32,13 @@ class CompressedRequestsTest < ActionDispatch::IntegrationTest -CHANGESET + CHANGESET # upload it post "/api/0.6/changeset/#{changeset.id}/upload", :params => diff, :headers => { - "HTTP_AUTHORIZATION" => format("Basic %{auth}", :auth => Base64.encode64("#{user.display_name}:test")), + "HTTP_AUTHORIZATION" => format("Basic %s", :auth => Base64.encode64("#{user.display_name}:test")), "HTTP_CONTENT_TYPE" => "application/xml" } assert_response :success, @@ -65,7 +65,7 @@ CHANGESET # simple diff to change a node, way and relation by removing # their tags - diff = < @@ -81,13 +81,13 @@ CHANGESET -CHANGESET + CHANGESET # upload it post "/api/0.6/changeset/#{changeset.id}/upload", :params => gzip_content(diff), :headers => { - "HTTP_AUTHORIZATION" => format("Basic %{auth}", :auth => Base64.encode64("#{user.display_name}:test")), + "HTTP_AUTHORIZATION" => format("Basic %s", :auth => Base64.encode64("#{user.display_name}:test")), "HTTP_CONTENT_ENCODING" => "gzip", "HTTP_CONTENT_TYPE" => "application/xml" } @@ -115,7 +115,7 @@ CHANGESET # simple diff to change a node, way and relation by removing # their tags - diff = < @@ -131,13 +131,13 @@ CHANGESET -CHANGESET + CHANGESET # upload it post "/api/0.6/changeset/#{changeset.id}/upload", :params => deflate_content(diff), :headers => { - "HTTP_AUTHORIZATION" => format("Basic %{auth}", :auth => Base64.encode64("#{user.display_name}:test")), + "HTTP_AUTHORIZATION" => format("Basic %s", :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 %{auth}", :auth => Base64.encode64("#{user.display_name}:test")), + "HTTP_AUTHORIZATION" => format("Basic %s", :auth => Base64.encode64("#{user.display_name}:test")), "HTTP_CONTENT_ENCODING" => "unknown", "HTTP_CONTENT_TYPE" => "application/xml" }