X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/b8f6dbd403507edd14f04f3151c285e232607360..04efc39a498222ddad3eaee80d1fffc4da3630b7:/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