]> git.openstreetmap.org Git - rails.git/blobdiff - test/test_helper.rb
Phase 2 CTs implementation and tests, with config parameter
[rails.git] / test / test_helper.rb
index 4972ee6d6e6b90b1d7fb14c8f2e54ed687fdf9e0..6a618c8d3e6073bf24e1f2c7bbf77fd61269a4ba 100644 (file)
@@ -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