X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/eb0f9ff63d5ad5d91ea941420e094dd2980df094..3b3896da08b0733c3934ac3913ae4b48efa939ff:/test/test_helper.rb diff --git a/test/test_helper.rb b/test/test_helper.rb index 4972ee6d6..6a618c8d3 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -121,6 +121,10 @@ class ActiveSupport::TestCase @request.env["HTTP_AUTHORIZATION"] = "Basic %s" % Base64.encode64("#{user}:#{pass}") end + def error_format(format) + @request.env["HTTP_X_ERROR_FORMAT"] = format + end + def content(c) @request.env["RAW_POST_DATA"] = c.to_s end