X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f898cecb5cd03f3c86debf4a1f5db8f54f3d86ad..5cc4e933479b7e74ed7d4425909f0915717fc1db:/test/test_helper.rb?ds=sidebyside 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