X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/20a861392e1ee7970da5d95b546aa8551faaf27b..0a3087cd7dbf3c4ce98afe9e086aca50d19325cd:/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