X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f898cecb5cd03f3c86debf4a1f5db8f54f3d86ad..c780a3f453f96e8849e56e585cddbf5bbaaad240:/test/test_helper.rb diff --git a/test/test_helper.rb b/test/test_helper.rb index 84d03bec2..9354e6646 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -115,12 +115,6 @@ module ActiveSupport assert_equal a.tags, b.tags, "tags on node #{a.id}" end - ## - # set request headers for HTTP basic authentication - def basic_authorization(user, pass) - @request.env["HTTP_AUTHORIZATION"] = format("Basic %{auth}", :auth => Base64.encode64("#{user}:#{pass}")) - end - ## # return request header for HTTP Basic Authorization def basic_authorization_header(user, pass) @@ -171,11 +165,7 @@ module ActiveSupport end ## - # set request readers to ask for a particular error format - def error_format(format) - @request.env["HTTP_X_ERROR_FORMAT"] = format - end - + # return request header to ask for a particular error format def error_format_header(f) { "X-Error-Format" => f } end