X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/737990117e78c054ce2afdb548cca806d534909d..73c95847a6680bea7f35fe5b3da6eb4e52757b9c:/test/test_helper.rb diff --git a/test/test_helper.rb b/test/test_helper.rb index 378d49bb9..08f01e8e7 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -115,6 +115,12 @@ module ActiveSupport @request.env["HTTP_AUTHORIZATION"] = format("Basic %{auth}", :auth => Base64.encode64("#{user}:#{pass}")) end + ## + # set request header for HTTP Accept + def http_accept_format(format) + @request.env["HTTP_ACCEPT"] = format + end + ## # set request readers to ask for a particular error format def error_format(format)